diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index 245f311ef680f9..8e6f13e8008561 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -415,7 +415,7 @@ cp $OUTPUT_DIR/libblaze.jar ${ARCHIVE_DIR} # 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 1181943feb2a87..cbfc6afe27429e 100644 --- a/tools/cpp/osx_cc_configure.bzl +++ b/tools/cpp/osx_cc_configure.bzl @@ -68,7 +68,7 @@ def _compile_cc_file_single_arch(repository_ctx, src_name, out_name, timeout): "--sdk", "macosx", "clang", - "-mmacosx-version-min=10.9", + "-mmacosx-version-min=10.13", "-std=c++11", "-lc++", "-O3", @@ -98,7 +98,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name, timeout): "--sdk", "macosx", "clang", - "-mmacosx-version-min=10.9", + "-mmacosx-version-min=10.13", "-std=c++11", "-lc++", "-arch", diff --git a/tools/osx/BUILD b/tools/osx/BUILD index 990afe3e8ce31b..79344650445338 100644 --- a/tools/osx/BUILD +++ b/tools/osx/BUILD @@ -28,7 +28,7 @@ exports_files([ ]) 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 -arch arm64 -arch x86_64 -Wl,-no_adhoc_codesign -Wl,-no_uuid -o $@ $< && \ env -i codesign --identifier $@ --force --sign - $@ """ diff --git a/tools/osx/xcode_configure.bzl b/tools/osx/xcode_configure.bzl index d10daae0b3f3a8..26854db697b1e3 100644 --- a/tools/osx/xcode_configure.bzl +++ b/tools/osx/xcode_configure.bzl @@ -131,7 +131,7 @@ def run_xcode_locator(repository_ctx, xcode_locator_src_label): "--sdk", "macosx", "clang", - "-mmacosx-version-min=10.9", + "-mmacosx-version-min=10.13", "-fobjc-arc", "-framework", "CoreServices",