Skip to content

Commit 69d5615

Browse files
committed
refactor(bazelrc): organize build settings for unix, linux, macos, and windows
1 parent d8cdc8e commit 69d5615

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.bazelrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
build --copt=-Wno-error=deprecated-declarations --host_copt=-Wno-error=deprecated-declarations
1+
# Common settings for unix-like systems
2+
build:unix --copt=-Wno-error=deprecated-declarations
3+
build:unix --host_copt=-Wno-error=deprecated-declarations
4+
5+
# Apply unix config on linux and macos
6+
build:linux --config=unix
7+
build:macos --config=unix
8+
9+
# Windows specific settings
10+
build:windows --copt=-DABSL_HAVE_WORKING_GCC_WNO_DEPRECATED_DECLARATIONS=0
11+
build:windows --host_copt=-DABSL_HAVE_WORKING_GCC_WNO_DEPRECATED_DECLARATIONS=0
212

313
# Required until this is the default; expected in Bazel 7
414
common --enable_bzlmod

0 commit comments

Comments
 (0)