Skip to content

Commit 9fef234

Browse files
keertkillicitonion
andauthored
[4.2.4] Bump minimum supported macOS versions to 10.13 (bazelbuild#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 bazelbuild#17451. PiperOrigin-RevId: 511577111 Change-Id: I770ff101f52d16f2fc402f054579740b650986cc --------- Co-authored-by: Daniel Wagner-Hall <[email protected]>
1 parent cae02a9 commit 9fef234

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/bootstrap/compile.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ cp $OUTPUT_DIR/libblaze.jar ${ARCHIVE_DIR}
407407
# TODO(b/28965185): Remove when xcode-locator is no longer required in embedded_binaries.
408408
log "Compiling xcode-locator..."
409409
if [[ $PLATFORM == "darwin" ]]; then
410-
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
410+
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
411411
else
412412
cp tools/osx/xcode_locator_stub.sh ${ARCHIVE_DIR}/xcode-locator
413413
fi

tools/cpp/osx_cc_configure.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name):
6363
"--sdk",
6464
"macosx",
6565
"clang",
66-
"-mmacosx-version-min=10.9",
66+
"-mmacosx-version-min=10.13",
6767
"-std=c++11",
6868
"-lc++",
6969
"-O3",

tools/osx/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exports_files([
2828
])
2929

3030
DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """
31-
/usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -fobjc-arc -framework CoreServices \
31+
/usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.13 -fobjc-arc -framework CoreServices \
3232
-framework Foundation -o $@ $<
3333
"""
3434

tools/osx/xcode_configure.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def run_xcode_locator(repository_ctx, xcode_locator_src_label):
124124
"--sdk",
125125
"macosx",
126126
"clang",
127-
"-mmacosx-version-min=10.9",
127+
"-mmacosx-version-min=10.13",
128128
"-fobjc-arc",
129129
"-framework",
130130
"CoreServices",

0 commit comments

Comments
 (0)