-
Notifications
You must be signed in to change notification settings - Fork 8
/
.bazelrc
54 lines (44 loc) · 1.88 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import %workspace%/clang.bazelrc
startup --host_jvm_args=-Xmx4g
# This flag hints Bazel about the use of incompatible platforms for repositories.
# Without this flag, Bazel may raise an error about a repo that is not compatible
# with a specific platform, even if it is not the actual platform it is building
# on.
build:cicd --noincompatible_use_platforms_repo_for_constraints
build:cicd --config=clang
test --test_env=LANG=C
test --test_output=errors
test --build_tests_only
test --test_summary=short
# This flag is needed for building LLVM.
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
###
# Performance fixes
###
build --experimental_remote_merkle_tree_cache
query --experimental_remote_merkle_tree_cache
build --noexperimental_check_output_files --noexperimental_check_external_repository_files
fetch --noexperimental_check_output_files --noexperimental_check_external_repository_files
query --noexperimental_check_output_files --noexperimental_check_external_repository_files
build --incompatible_remote_results_ignore_disk
build --experimental_reuse_sandbox_directories
###
# Correctness guarantees
###
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
build --sandbox_default_allow_network=false
test --incompatible_exclusive_test_sandboxed
build --incompatible_strict_action_env
build --nolegacy_external_runfiles
build --incompatible_remote_results_ignore_disk
build --incompatible_default_to_explicit_init_py
common --incompatible_allow_tags_propagation
# Enable cross-compilation
build --platform_mappings=common/platforms/platform_mappings
build --incompatible_enable_cc_toolchain_resolution
###
# Rules rust: use coverage metadata files.
###
build --@rules_rust//rust/settings:experimental_use_coverage_metadata_files=false
run --@rules_rust//rust/settings:experimental_use_coverage_metadata_files=false
test --@rules_rust//rust/settings:experimental_use_coverage_metadata_files=false