mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
This commit is contained in:
@@ -75,7 +75,7 @@ if isPyPy then null else buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ pycparser ];
|
||||
|
||||
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
||||
"-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing";
|
||||
|
||||
doCheck = !stdenv.hostPlatform.isMusl;
|
||||
|
||||
Reference in New Issue
Block a user