File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,17 @@ main() {
2121 # Enable host OS specific configs. For instance, "build:linux" will be used
2222 # automatically when building on Linux.
2323 write_to_bazelrc " build --enable_platform_specific_config"
24+ write_to_bazelrc " build --verbose_failures"
2425 # Bazel 7.0.0 no longer supports dynamic symbol lookup on macOS. To resolve
2526 # undefined symbol errors in macOS arm64 builds, explicitly add the necessary
2627 # linker flags until dependencies are well defined. See
2728 # https://github.com/bazelbuild/bazel/issues/19730.
2829 write_to_bazelrc " build:macos --linkopt=-Wl,-undefined,dynamic_lookup"
2930 write_to_bazelrc " build:macos --host_linkopt=-Wl,-undefined,dynamic_lookup"
31+ # Force clang on macos. Otherwise we get linker errors described in
32+ # https://github.com/bazelbuild/bazel/issues/20838.
33+ write_to_bazelrc " build:macos --action_env=CC=clang"
34+ write_to_bazelrc " build:macos --action_env=CXX=clang++"
3035
3136 write_to_bazelrc " build --@rules_python//python/config_settings:python_version=${PYTHON_VERSION} "
3237 # Set platform-wise file extension for extension modules.
You can’t perform that action at this time.
0 commit comments