|
1 | 1 | # Try loading per-user configuration. |
2 | 2 | try-import %workspace%/user.bazelrc |
3 | 3 |
|
| 4 | +# Linux-specific configuration. |
| 5 | +build:linux --cxxopt=-std=c++17 |
| 6 | +build:linux --copt=-Wall |
| 7 | +build:linux --copt=-Wextra |
| 8 | +build:linux --copt=-Wpedantic |
| 9 | +build:linux --copt=-Werror |
| 10 | + |
| 11 | +# Windows-specific configuration. |
| 12 | +build:windows --cxxopt=/std:c++17 |
| 13 | +build:windows --copt=/W4 |
| 14 | +build:windows --copt=/WX |
| 15 | + |
4 | 16 | # On Windows clang.exe tries to find the MSVC toolchain by looking at environmental variables, |
5 | 17 | # querying Visual Studio instances via COM (>=2017) and reading Registry keys (<=2015). |
6 | 18 | # ProgramData data is typically required for COM api querying, unless a custom location for |
7 | 19 | # Visual Studio package cache is defined. |
8 | | - |
9 | | -build --action_env=ProgramData |
| 20 | +build:windows --action_env=ProgramData |
10 | 21 |
|
11 | 22 | # AddressSanitizer (ASan). |
12 | 23 | build:asan --strip=never |
13 | | -build:asan --copt -fsanitize=address |
14 | | -build:asan --copt -DADDRESS_SANITIZER |
15 | | -build:asan --copt -O0 |
16 | | -build:asan --copt -g |
17 | | -build:asan --copt -fno-omit-frame-pointer |
| 24 | +build:asan --copt=-fsanitize=address |
| 25 | +build:asan --copt=-DADDRESS_SANITIZER |
| 26 | +build:asan --copt=-O0 |
| 27 | +build:asan --copt=-g |
| 28 | +build:asan --copt=-fno-omit-frame-pointer |
18 | 29 | build:asan --linkopt -fsanitize=address |
19 | 30 |
|
20 | 31 | # MemorySanitizer (MSan). |
|
0 commit comments