[4.2.4] Bump minimum supported macOS versions to 10.13 (#18047)
* Bump minimum supported macOS versions to 10.13
As per https://developer.apple.com/support/xcode/ Xcode from 14.0 no longer supports targeting 10.9, and attempting to do so may fail in obscure ways.
10.13 is still 5+ years old, so we retain coverage for a reasonable range on macOS versions.
Closes #17451.
PiperOrigin-RevId: 511577111
Change-Id: I770ff101f52d16f2fc402f054579740b650986cc
---------
Co-authored-by: Daniel Wagner-Hall <dwagnerhall@apple.com>
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index f9a152f..3d07d68 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -407,7 +407,7 @@
# TODO(b/28965185): Remove when xcode-locator is no longer required in embedded_binaries.
log "Compiling xcode-locator..."
if [[ $PLATFORM == "darwin" ]]; then
- run /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -fobjc-arc -framework CoreServices -framework Foundation -o ${ARCHIVE_DIR}/xcode-locator tools/osx/xcode_locator.m
+ run /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.13 -fobjc-arc -framework CoreServices -framework Foundation -o ${ARCHIVE_DIR}/xcode-locator tools/osx/xcode_locator.m
else
cp tools/osx/xcode_locator_stub.sh ${ARCHIVE_DIR}/xcode-locator
fi
diff --git a/tools/cpp/osx_cc_configure.bzl b/tools/cpp/osx_cc_configure.bzl
index b0b7a96..0929c98 100644
--- a/tools/cpp/osx_cc_configure.bzl
+++ b/tools/cpp/osx_cc_configure.bzl
@@ -63,7 +63,7 @@
"--sdk",
"macosx",
"clang",
- "-mmacosx-version-min=10.9",
+ "-mmacosx-version-min=10.13",
"-std=c++11",
"-lc++",
"-O3",
diff --git a/tools/osx/BUILD b/tools/osx/BUILD
index 903baf5..f767bd7 100644
--- a/tools/osx/BUILD
+++ b/tools/osx/BUILD
@@ -28,7 +28,7 @@
])
DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """
- /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -fobjc-arc -framework CoreServices \
+ /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.13 -fobjc-arc -framework CoreServices \
-framework Foundation -o $@ $<
"""
diff --git a/tools/osx/xcode_configure.bzl b/tools/osx/xcode_configure.bzl
index e43e161..2464300 100644
--- a/tools/osx/xcode_configure.bzl
+++ b/tools/osx/xcode_configure.bzl
@@ -124,7 +124,7 @@
"--sdk",
"macosx",
"clang",
- "-mmacosx-version-min=10.9",
+ "-mmacosx-version-min=10.13",
"-fobjc-arc",
"-framework",
"CoreServices",