1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

grpc: only set -Wno-error on clang

Apparently GCC errors on this:

https://hydra.nixos.org/build/83561519/
This commit is contained in:
Matthew Bauer 2018-11-03 14:03:34 -05:00 committed by GitHub
parent ef16e1fe03
commit f0cee6b14f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
rm -vf BUILD
'';
NIX_CFLAGS_COMPILE = "-Wno-error=unknown-warning-option";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option";
enableParallelBuilds = true;