aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorJack Nagel2014-10-27 23:59:47 -0500
committerJack Nagel2014-10-29 11:03:54 -0500
commitf0f62f2e298a1eaa2e6d09ddb18a33c985e3bfeb (patch)
tree4a31cf349d2157cc8e40113abef1ed711ddafb66 /Library/ENV
parentd70e978c905f98cc055714b8ce711cac8e933a1b (diff)
downloadhomebrew-f0f62f2e298a1eaa2e6d09ddb18a33c985e3bfeb.tar.bz2
Always set sysroot for Xcode-only systems
Fixes #33431.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 26468cdfa..42771a4d0 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -33,7 +33,7 @@ class Cmd
@args = args.freeze
@brewfix = ENV['HOMEBREW_PREFIX']
@brewtmp = ENV['HOMEBREW_TEMP']
- @sysroot = ENV['HOMEBREW_SYSROOT']
+ @sysroot = ENV['HOMEBREW_SDKROOT']
end
def mode
@@ -93,7 +93,7 @@ class Cmd
if tool == "ld"
args << "-syslibroot" << sysroot
else
- args << "--sysroot=#{sysroot}"
+ args << "-isysroot" << sysroot << "--sysroot=#{sysroot}"
end
end