From 3f795bc5785106f4b3a83ab3d6240dcafc314784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 14 Mar 2023 20:14:06 +1100 Subject: [PATCH] acpica-tools: fix darwin build Don't use the gcc-specific flags with other compilers. --- pkgs/tools/system/acpica-tools/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index 92f30e4ddbc9..214fe763f283 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -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;