3
0
Fork 0
forked from mirrors/nixpkgs

kore: fix clang build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan 2018-03-19 23:55:59 +01:00
parent 5873a3418b
commit 031492cbfe
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -20,8 +20,9 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
# added to fix build w/gcc7
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isLinux [ "-Wno-error=pointer-compare" ];
# added to fix build w/gcc7 and clang5
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare"
+ stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option";
enableParallelBuilding = true;