mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
acpica-tools: fix darwin build
Don't use the gcc-specific flags with other compilers.
This commit is contained in:
parent
35e37ef51a
commit
3f795bc578
@ -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 New Issue
Block a user