Skip to content

Commit

Permalink
Only force clang, not clang-10
Browse files Browse the repository at this point in the history
clang-10 isn't available on macOS. Before Bazel 7, this never applied
to macOS since the default toolchain used Xcode, ignoring the value of
`CC` alltogether.

Also move from `--action_env` to `--repo_env`, which doesn't leak into
all actions environment, and don't set `CXX`, which isn't read by Bazel.
  • Loading branch information
fmeum committed Dec 12, 2023
1 parent 80bee27 commit 187b109
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
common --noenable_bzlmod

# Force the use of Clang for all builds.
build --action_env=CC=clang-10
build --action_env=CXX=clang++-10
build --repo_env=CC=clang

# Needed for abseil-cpp until https://github.com/bazelbuild/bazel/pull/19794 is released.
build --cxxopt=-std=c++14
Expand Down

0 comments on commit 187b109

Please sign in to comment.