Skip to content

Commit

Permalink
Use macOS SDK matching Xcode version
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Aug 4, 2022
1 parent db686da commit e1de391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci_scripts/tf-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ elif [ "${OS}" = "Darwin" ]; then
if [ "$FROM" = "darwin-x86_64" -a "$TO" = "darwin-x86_64" ]; then
BAZEL_OPT_FLAGS="--copt=-mtune=generic --copt=-march=x86-64 --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx"
if [ "${CI}" = true ]; then
BAZEL_EXTRA_FLAGS="${BAZEL_EXTRA_FLAGS} --macos_minimum_os 10.10 --macos_sdk_version 10.15"
BAZEL_EXTRA_FLAGS="${BAZEL_EXTRA_FLAGS} --macos_minimum_os 10.10 --macos_sdk_version 12.0"
fi
elif [ "$FROM" = "darwin-x86_64" -a "$TO" = "darwin-arm64" ]; then
BAZEL_OPT_FLAGS=""
if [ "${CI}" = true ]; then
BAZEL_EXTRA_FLAGS="--config=macos_arm64 --xcode_version 12.2 --macos_minimum_os 11.0 --macos_sdk_version 11.0"
BAZEL_EXTRA_FLAGS="--config=macos_arm64 --xcode_version 13.1 --macos_minimum_os 11.0 --macos_sdk_version 12.0"
fi
elif [ "$FROM" = "darwin-arm64" -a "$TO" = "darwin-arm64" ]; then
BAZEL_OPT_FLAGS=""
Expand Down

0 comments on commit e1de391

Please sign in to comment.