Skip to content

Commit 2d43a2c

Browse files
Revert runner set --xcode_version (#1100)
While `bazel_build.sh` should still have `--xcode_version`, to ensure that Bazel uses the version of Xcode you are building inside of, setting `--xcode_version` based on `xcode-select` can counter-act some people's use of `--xcode_config`. We leave the `--repo_env` though to at least try to fix bazelbuild/bazel#8902.
1 parent 4bafb7c commit 2d43a2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

xcodeproj/internal/runner.template.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ fi
5454

5555
xcode_build_version=$(/usr/bin/xcodebuild -version | tail -1 | cut -d " " -f3)
5656
pre_config_flags=(
57-
# Be explicit about our desired Xcode version
58-
"--xcode_version=$xcode_build_version"
59-
6057
# Work around https://github.com/bazelbuild/bazel/issues/8902
6158
# `USE_CLANG_CL` is only used on Windows, we set it here to cause Bazel to
6259
# re-evaluate the cc_toolchain for a different Xcode version

0 commit comments

Comments
 (0)