git.iko.soy/typeable/nixpkgs
on master help sign in
kore: fix clang build

/cc ZHF #36454

commit031492cbfe2f2768c9b271c194c74e3f75e7316c authorDaiderd Jordan <daiderd@gmail.com> dateMon 19 Mar 2018, 23:55 (9 years ago) parent5873a34
1 file changed+3−2
pkgs/development/web/kore/default.nix+3−2
pkgs/development/web/kore/default.nix+3−2
@@ -20,8 +20,9 @@ stdenv.mkDerivation rec {
2020
2121 makeFlags = [ "PREFIX=$(out)" ];
2222
23− # added to fix build w/gcc7
24− NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isLinux [ "-Wno-error=pointer-compare" ];
23+ # added to fix build w/gcc7 and clang5
24+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare"
25+ + stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option";
2526
2627 enableParallelBuilding = true;
2728