Skip to content

Commit 43b8276

Browse files
committed
Add support for optional cc_toolchain
1 parent aa6e74e commit 43b8276

File tree

29 files changed

+1827
-561
lines changed

29 files changed

+1827
-561
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ build:unpretty --output_groups=+rust_unpretty
4949
# https://github.com/rust-lang/rust/issues/43364
5050
build:unpretty --config=nightly
5151

52+
# Disable cc toolchains to test rust targets can be built without one.
53+
build:no_cc_toolchain --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
54+
build:no_cc_toolchain --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
55+
5256
###############################################################################
5357
## Incompatibility flags
5458
###############################################################################

0 commit comments

Comments
 (0)