-
Notifications
You must be signed in to change notification settings - Fork 897
Expand file tree
/
Copy path.bazelrc
More file actions
49 lines (36 loc) · 1.89 KB
/
Copy path.bazelrc
File metadata and controls
49 lines (36 loc) · 1.89 KB
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
# Disable Bzlmod for now
common --noenable_bzlmod --enable_workspace
# Turn off empty glob check (flipped in Bazel 8).
common --incompatible_disallow_empty_glob=false
# Enable legacy external runfiles
# This is false in Bazel 8, but broke some tests.
common --legacy_external_runfiles=true
common:bzlmod --enable_bzlmod --noenable_workspace
common --incompatible_enable_cc_toolchain_resolution
common --repo_env USE_HERMETIC_CC_TOOLCHAIN=1
# external_include_paths feature forces passing external repositories headers
# via -isystem alters how Clang resolves their file paths. This feature with
# old versions of rules_cc triggering errors.
# Following lines can be removed after rules_cc will be updated to >= 0.2.20
common --features=-external_include_paths
common --host_features=-external_include_paths
# TODO: Migrate for https://github.com/bazelbuild/bazel/issues/7260
common:clang_local --noincompatible_enable_cc_toolchain_resolution
common:clang_local --@rules_ml_toolchain//common:enable_hermetic_cc=False
common:clang_local --repo_env USE_HERMETIC_CC_TOOLCHAIN=0
common:clang-tidy-common --aspects=@bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
common:clang-tidy-common --output_groups=report
common:clang-tidy-common --@bazel_clang_tidy//:clang_tidy_executable=//build_tools/ci:clang_tidy_bin
common:clang-tidy --config=clang-tidy-common
common:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=//:clang_tidy_config
common:clang-tidy-noerrors --config=clang-tidy-common
common:clang-tidy-noerrors --@bazel_clang_tidy//:clang_tidy_config=//:clang_tidy_config_noerrors
# Load the TensorFlow bazelrc
import %workspace%/tensorflow.bazelrc
import %workspace%/warnings.bazelrc
# Treat warnings as errors
build --config=warnings
# Enable layering check for CI builds
common:rbe_linux_cpu --features=layering_check
common:bzlmod --features=-layering_check
try-import %workspace%/xla_configure.bazelrc