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
commitcb096605168aab687eb40e698fc5e1be853caf67 (patch)
treee9c362e65d78f711b1b9c3f13e844449780bbc9a /Library/ENV
parent6545e6dad3081baac176e1519206b2b9de7ff233 (diff)
downloadbrew-cb096605168aab687eb40e698fc5e1be853caf67.tar.bz2
Always set sysroot for Xcode-only systems
Fixes Homebrew/homebrew#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