acpica-tools: fix darwin build
Don't use the gcc-specific flags with other compilers.
This commit is contained in:
parent
35e37ef51a
commit
3f795bc578
1 changed files with 3 additions and 2 deletions
|
@ -29,11 +29,12 @@ stdenv.mkDerivation rec {
|
|||
"iasl"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
env.NIX_CFLAGS_COMPILE = toString ([
|
||||
"-O3"
|
||||
] ++ lib.optionals (stdenv.cc.isGNU) [
|
||||
# Needed with GCC 12
|
||||
"-Wno-dangling-pointer"
|
||||
];
|
||||
]);
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue