mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
Merge pull request #258309 from wegank/edk2-darwin
edk2: fix build on x86_64-darwin
This commit is contained in:
commit
d18cca8d67
@ -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" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user