We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24983b2 commit b86ab4dCopy full SHA for b86ab4d
specs/gcc.anod
@@ -129,9 +129,12 @@ class GCC(spec("gh-artifact")):
129
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340
130
args.append("--without-build-config")
131
132
- args.append(
133
- "--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
134
- )
+ xcode = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
+ clu = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
+
135
+ args.append("--with-build-sysroot=%s" % xcode)
136
+ args.append("--with-specs=%%{!sysroot=*:--sysroot=%%:if-exists-else(%s %s)}" %
137
+ (xcode, clu))
138
139
if self.env.host.os.name != "darwin":
140
args.append("--with-gnu-ld")
0 commit comments