Tweak SDK variables for new Xcode/CLT setup.
This commit is contained in:
parent
cd0db51343
commit
2e1331cbc8
@ -9,7 +9,7 @@ module Superenv
|
|||||||
end
|
end
|
||||||
|
|
||||||
def effective_sysroot
|
def effective_sysroot
|
||||||
MacOS::Xcode.without_clt? ? MacOS.sdk_path.to_s : nil
|
MacOS.sdk_path.to_s if MacOS::Xcode.without_clt?
|
||||||
end
|
end
|
||||||
|
|
||||||
def homebrew_extra_paths
|
def homebrew_extra_paths
|
||||||
@ -91,10 +91,8 @@ module Superenv
|
|||||||
generic_setup_build_environment(formula)
|
generic_setup_build_environment(formula)
|
||||||
self["HOMEBREW_SDKROOT"] = effective_sysroot
|
self["HOMEBREW_SDKROOT"] = effective_sysroot
|
||||||
|
|
||||||
if MacOS::Xcode.without_clt? || MacOS::Xcode.version.to_i >= 7
|
self["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version.to_s
|
||||||
self["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version.to_s
|
self["SDKROOT"] = MacOS.sdk_path if MacOS::Xcode.without_clt?
|
||||||
self["SDKROOT"] = MacOS.sdk_path
|
|
||||||
end
|
|
||||||
|
|
||||||
# Filter out symbols known not to be defined since GNU Autotools can't
|
# Filter out symbols known not to be defined since GNU Autotools can't
|
||||||
# reliably figure this out with Xcode 8 and above.
|
# reliably figure this out with Xcode 8 and above.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user