-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bazelrc
38 lines (33 loc) · 1.49 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
build --enable_platform_specific_config=true
# Minumum C++ version. Override it building this project with
# `bazel build --cxxopt='-std=c++<XY>' --host_cxxopt='c++<XY>' ...`
# (Both -std and --host_cxxopt must be set to force the desired version.)
build:linux --cxxopt=-std=c++14
build:linux --host_cxxopt=-std=c++14
build:macos --cxxopt=-std=c++14
build:macos --host_cxxopt=-std=c++14
build:windows --cxxopt='/std:c++14'
build:windows --host_cxxopt='/std:c++14'
# Solve various length limits. See e.g., https://github.com/bazelbuild/bazel/issues/17068.
build:windows --features=archive_param_file
build:windows --features=linker_param_file
build:windows --features=compiler_param_file
build:windows --enable_runfiles
# Configs for macOS on x86_64.
build:macos_x86_64 --cpu=darwin
# NOTE: If macos_minimum_os is unspecified, Bazel uses the default value of
# macos_sdk_version which is taken from the default system Xcode [1], even if
# MACOSX_DEPLOYMENT_TARGET is set [2].
# [1] https://bazel.build/reference/command-line-reference#flag--macos_minimum_os
# [2] https://github.com/bazelbuild/bazel/issues/16932
build:macos_x86_64 --macos_minimum_os=10.9
# Configs for cmacOS on ARM64.
build:macos_arm64 --cpu=darwin_arm64
build:macos_arm64 --macos_cpus=arm64
build:macos_arm64 --macos_minimum_os=11.0
# Silence all C/C++ warnings in external code.
#
# Note that this will not silence warnings from external headers included
# in project code.
build --per_file_copt=external/.*@-w
build --host_per_file_copt=external/.*@-w