mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
gcc: fix build on x86_64-darwin
This commit is contained in:
@@ -244,6 +244,11 @@ let
|
||||
++ lib.optionals (langD) [
|
||||
"--with-target-system-zlib=yes"
|
||||
]
|
||||
# Clang 11 performs an optimization on x86_64 that is sensitive to the presence of debug info.
|
||||
# This causes GCC to fail to bootstrap due to object file differences between stages 2 and 3.
|
||||
++ lib.optionals (targetPlatform.isDarwin && targetPlatform.isx86_64) [
|
||||
"--with-as=${targetPackages.darwin.cctools-port}/bin/${targetPrefix}as"
|
||||
]
|
||||
;
|
||||
|
||||
in configureFlags
|
||||
|
||||
Reference in New Issue
Block a user