gcc: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang
2023-07-08 11:03:41 +03:00
parent f66291aefe
commit b39481bc09

View File

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