-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bazelrc
More file actions
38 lines (29 loc) · 1.88 KB
/
.bazelrc
File metadata and controls
38 lines (29 loc) · 1.88 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
import %workspace%/tools/preset.bazelrc
### YOUR PROJECT SPECIFIC OPTIONS GO HERE ###
common:release -c opt --stamp --workspace_status_command="node tools/workspace_status.js"
common --enable_workspace
common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
common:linux --host_platform=//platforms:linux_host_platform
common --@llvm//config:experimental_stub_libgcc_s=True
# llvm bzlmod uses PIE CRT objects; Go's stdlib uses absolute relocations
# so lld rejects the link in PIE mode. Disable PIE for cgo binaries.
# Keep this workaround until Go's stdlib and lld reliably support linking cgo binaries as PIE.
# https://github.com/golang/go/pull/77601
# https://github.com/golang/go/pull/76858
common --linkopt=-no-pie
common --host_linkopt=-no-pie
common --incompatible_enable_proto_toolchain_resolution
common --@protobuf//bazel/toolchains:prefer_prebuilt_protoc
build:windows --sandbox_add_mount_pair=C:\Temp
# Load any settings & overrides specific to the external remote cache from `.aspect/bazelrc/remote-cache.bazelrc`.
# This file should appear in `.gitignore` so that settings are not shared with team members. This
# should be last statement in this config so the user configuration is able to overwrite flags from
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
# Setup of this file is automated by running the setup_remote_cache.sh Bash script.
try-import %workspace%/.aspect/bazelrc/remote-cache.bazelrc
# Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`.
# This file should appear in `.gitignore` so that settings are not shared with team members. This
# should be last statement in this config so the user configuration is able to overwrite flags from
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
try-import %workspace%/.aspect/bazelrc/user.bazelrc