aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-10-26 19:20:58 -0700
committerDan Willemsen <dwillemsen@google.com>2016-10-28 13:57:34 -0700
commit85e3d0110fbe8116e0e8b77caf8cb2140423540b (patch)
treec2790b93a364630adefd1ca978cecd617951ba76 /cc
parent0cca77771514f3b811f584f753a40f2a9ea50c7b (diff)
downloadbuild_soong-85e3d0110fbe8116e0e8b77caf8cb2140423540b.tar.gz
build_soong-85e3d0110fbe8116e0e8b77caf8cb2140423540b.tar.bz2
build_soong-85e3d0110fbe8116e0e8b77caf8cb2140423540b.zip
Remove support for building with OSX 10.8/9 SDKs
Our minimum build version listed on source.android.com is 10.10. Change the minimum used SDK to 10.10, but keep the deployed version at 10.8 so that our distributed tools still work on older versions. CoreBluetooth/CoreBluetooth.h isn't available directly in older SDKs, but we need to include it in the 10.12 SDK. Test: `m -j` with 10.11, 10.12 SDKs. Test: Verified the builders all have at least 10.10 sdk available. Change-Id: I82321875b8b3a4099ea829ce2d75e1af29cb38c6
Diffstat (limited to 'cc')
-rw-r--r--cc/config/x86_darwin_host.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go
index b17395d6..2db3cbf1 100644
--- a/cc/config/x86_darwin_host.go
+++ b/cc/config/x86_darwin_host.go
@@ -42,14 +42,14 @@ var (
"-g", // from build/core/combo/select.mk
"-fno-strict-aliasing", // from build/core/combo/select.mk
"-isysroot ${macSdkRoot}",
- "-mmacosx-version-min=${macSdkVersion}",
- "-DMACOSX_DEPLOYMENT_TARGET=${macSdkVersion}",
+ "-mmacosx-version-min=${macMinVersion}",
+ "-DMACOSX_DEPLOYMENT_TARGET=${macMinVersion}",
}
darwinLdflags = []string{
"-isysroot ${macSdkRoot}",
"-Wl,-syslibroot,${macSdkRoot}",
- "-mmacosx-version-min=${macSdkVersion}",
+ "-mmacosx-version-min=${macMinVersion}",
}
// Extended cflags
@@ -85,11 +85,9 @@ var (
darwinX8664ClangLdflags = ClangFilterUnknownCflags(darwinX8664Ldflags)
darwinSupportedSdkVersions = []string{
- "10.8",
- "10.9",
"10.10",
"10.11",
- "10.12",
+ "10.12",
}
darwinAvailableLibraries = append(
@@ -119,7 +117,7 @@ func init() {
pctx.VariableFunc("macSdkRoot", func(config interface{}) (string, error) {
return xcrunSdk(config.(android.Config), "--show-sdk-path")
})
- pctx.StaticVariable("macSdkVersion", darwinSupportedSdkVersions[0])
+ pctx.StaticVariable("macMinVersion", "10.8")
pctx.VariableFunc("MacArPath", func(config interface{}) (string, error) {
bytes, err := exec.Command("xcrun", "--find", "ar").Output()
return strings.TrimSpace(string(bytes)), err