treewide: NIX_*_COMPILE -> string

This commit is contained in:
Robin Gloster
2019-10-30 01:12:09 +01:00
committed by Jan Tojnar
parent e5ded57aab
commit 981ae25113
11 changed files with 17 additions and 19 deletions

View File

@@ -29,7 +29,8 @@ if isPyPy then null else buildPythonPackage rec {
'';
# The tests use -Werror but with python3.6 clang detects some unreachable code.
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.cc.isClang [ "-Wno-unused-command-line-argument" "-Wno-unreachable-code" ];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang
"-Wno-unused-command-line-argument -Wno-unreachable-code";
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
checkPhase = ''