diff options
| author | Misty De Meo | 2015-12-04 14:01:33 -0800 |
|---|---|---|
| committer | Misty De Meo | 2015-12-07 13:17:43 -0800 |
| commit | 5ecf3113a857568d8268a4ec49a8a4d4b2618c00 (patch) | |
| tree | 62de4303962aa6979072e3c3fabb61c96030c643 /Library/Homebrew/extend | |
| parent | 48bdd4811ec5ef54e4e408b0dcc4b7659c648a7d (diff) | |
| download | brew-5ecf3113a857568d8268a4ec49a8a4d4b2618c00.tar.bz2 | |
superenv: set SDKROOT, MACOSX_DEPLOYMENT_TARGET
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 601409ab2..31000c592 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -67,6 +67,11 @@ module Superenv self["HOMEBREW_INCLUDE_PATHS"] = determine_include_paths self["HOMEBREW_LIBRARY_PATHS"] = determine_library_paths + if MacOS::Xcode.without_clt? + self["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version.to_s + self["SDKROOT"] = MacOS.sdk_path + end + # On 10.9, the tools in /usr/bin proxy to the active developer directory. # This means we can use them for any combination of CLT and Xcode. self["HOMEBREW_PREFER_CLT_PROXIES"] = "1" if MacOS.version >= "10.9" |
