acpica-tools: fix darwin build

Don't use the gcc-specific flags with other compilers.
This commit is contained in:
Stanisław Pitucha 2023-03-14 20:14:06 +11:00 committed by Stanisław Pitucha
parent 35e37ef51a
commit 3f795bc578

View file

@ -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;