forked from hermeticbuild/hermetic-llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bazelrc
More file actions
87 lines (74 loc) · 4.14 KB
/
.bazelrc
File metadata and controls
87 lines (74 loc) · 4.14 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
common --enable_platform_specific_config
common --experimental_fetch_all_coverage_outputs
common --heap_dump_on_oom
common --incompatible_default_to_explicit_init_py
common --incompatible_enforce_starlark_utf8=error
common --incompatible_modify_execution_info_additive
common --incompatible_strict_action_env
common --module_mirrors="https://bcr.cloudflaremirrors.com"
common --nobuild_runfile_links
common --noexperimental_check_external_repository_files
common --nosandbox_default_allow_network
common --repo_env="JAVA_HOME=../bazel_tools/jdk"
common --reuse_sandbox_directories
common --show_result=20
common --test_output=errors
common:ci --announce_rc
common:ci --color=yes
common:ci --show_timestamps
test:ci --test_summary=terse
# Don’t want to push a rules author to update their deps if not needed.
# https://bazel.build/reference/command-line-reference#flag--check_direct_dependencies
# https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0
common --check_direct_dependencies=off
common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
common --repo_env=BAZEL_DO_NOT_DETECT_SWIFT_TOOLCHAIN=1
common --experimental_cc_static_library
common --experimental_platform_in_output_dir
common --incompatible_config_setting_private_default_visibility
common:cc --@rules_python//python/config_settings:bootstrap_impl=script
common:bootstrap --@llvm//toolchain:source=bootstrapped
# Bootstrap Go compilers from source with our patch.
common:wasm --@rules_go//go/toolchain:source=bootstrapped
common:prebuilt -c opt
common:prebuilt --strip=always
common:prebuilt --stripopt=--strip-all
# Use ThinLTO when available (on Linux), but it doesn't work for Darwin targets, so also enable `flto=thin` as fallback.
common:prebuilt --features=thin_lto
common:prebuilt --copt=-flto=thin
common:prebuilt --copt=-fno-exceptions
common:prebuilt --copt=-fno-rtti
common:prebuilt --copt=-fomit-frame-pointer
common:prebuilt --dynamic_mode=off
common:prebuilt --extra_toolchains=//toolchain:all
# See https://github.com/llvm/llvm-project/blob/497a6d672263343f58eae5a5e697484f4899fbdc/utils/bazel/llvm-project-overlay/llvm/driver.bzl#L11
common:prebuilt --@llvm-project//llvm:driver-tools=clang-scan-deps,clang,dsymutil,lld,llvm-ar,llvm-cgdata,llvm-cov,llvm-cxxfilt,llvm-debuginfod-find,llvm-dwp,llvm-gsymutil,llvm-ifs,llvm-libtool-darwin,llvm-link,llvm-lipo,llvm-ml,llvm-mt,llvm-nm,llvm-objcopy,llvm-objdump,llvm-profdata,llvm-rc,llvm-readobj,llvm-readtapi,llvm-size,llvm-symbolizer,sancov
common:rust --@rules_cc//cc/toolchains/args/archiver_flags:use_libtool_on_macos=False
common:rust --@rules_rust//rust/settings:experimental_use_sh_toolchain_for_bootstrap_process_wrapper
common:rust --@llvm//config:experimental_stub_libgcc_s=True
common --bes_results_url=https://app.buildbuddy.io/invocation/
common --bes_backend=grpcs://remote.buildbuddy.io
common --experimental_remote_downloader=grpcs://remote.buildbuddy.io
common --grpc_keepalive_time=30s
common --remote_cache=grpcs://remote.buildbuddy.io
common --remote_cache_compression
common --remote_download_toplevel
common --nobuild_runfile_links
common --remote_timeout=120
common --noexperimental_throttle_remote_action_building
common --experimental_remote_execution_keepalive
common --grpc_keepalive_time=30s
common:remote --remote_executor=grpcs://remote.buildbuddy.io
common:remote --jobs=800
common:remote --extra_execution_platforms=@llvm//:rbe_platform
common --per_file_copt=external/.*llvm-project.*@-Wno-thread-safety-analysis
common --host_per_file_copt=external/.*llvm-project.*@-Wno-thread-safety-analysis
# Load any settings specific to the current user.
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
# This needs to be last statement in this
# config, as the user configuration should be able to overwrite flags from this file.
# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc
# (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing,
# rather than user.bazelrc as suggested in the Bazel docs)
try-import %workspace%/.bazelrc.user