summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/edk2
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-01 03:25:59 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-01 03:25:59 +0200
commitce1c2ac4cbe4f9e5393f6a641205c2a1d74f8aa4 (patch)
tree664bf2fe266657c8f04423ea89e68193fa0c4ab4 /pkgs/development/compilers/edk2
parentd2f79d7443e96b7ea2beb96528c322530f4a54b3 (diff)
edk2: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/development/compilers/edk2')
-rw-r--r--pkgs/development/compilers/edk2/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/edk2/default.nix b/pkgs/development/compilers/edk2/default.nix
index 304ca30b5229..d34ae7b8143e 100644
--- a/pkgs/development/compilers/edk2/default.nix
+++ b/pkgs/development/compilers/edk2/default.nix
@@ -68,7 +68,9 @@ edk2 = stdenv.mkDerivation rec {
makeFlags = [ "-C BaseTools" ];
- env.NIX_CFLAGS_COMPILE = "-Wno-return-type" + lib.optionalString (stdenv.cc.isGNU) " -Wno-error=stringop-truncation";
+ env.NIX_CFLAGS_COMPILE = "-Wno-return-type"
+ + lib.optionalString (stdenv.cc.isGNU) " -Wno-error=stringop-truncation"
+ + lib.optionalString (stdenv.isDarwin) " -Wno-error=macro-redefined";
hardeningDisable = [ "format" "fortify" ];