Skip to content

Commit

Permalink
qt4: fix to work on clang 4
Browse files Browse the repository at this point in the history
The new clang is more strict about signed comparisons against pointers,
so this adds a couple of ad-hoc patches to appease it.
  • Loading branch information
copumpkin committed Mar 30, 2017
1 parent 4d4488e commit 409fe12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/qt-4.x/4.8/default.nix
Expand Up @@ -54,6 +54,12 @@ stdenv.mkDerivation rec {
# there might be more references, but this is the only one I could find
substituteInPlace tools/macdeployqt/tests/tst_deployment_mac.cpp \
--replace /usr/lib/libstdc++.6.dylib "${stdenv.cc}/lib/libstdc++.6.dylib"
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
substituteInPlace src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp \
--replace 'optionalHeight > 0' 'optionalHeight != NULL'
substituteInPlace ./tools/linguist/linguist/messagemodel.cpp \
--replace 'm->comment()) >= 0' 'm->comment()) != NULL'
'';

patches =
Expand Down

0 comments on commit 409fe12

Please sign in to comment.