|
| 1 | +common --experimental_repo_remote_exec |
| 2 | +common --experimental_ui_max_stdouterr_bytes=-1 |
| 3 | + |
| 4 | +build --incompatible_new_actions_api=false |
| 5 | +build --copt=-fdiagnostics-color=always |
| 6 | +build --enable_platform_specific_config |
| 7 | + |
| 8 | +build --cxxopt=-std=c++17 |
| 9 | +build --host_cxxopt=-std=c++17 |
| 10 | +build --linkopt -fvisibility=hidden |
| 11 | + |
| 12 | +# Binary safety flags |
| 13 | +build --copt=-fPIC |
| 14 | +build --host_copt=-fstack-protector-strong |
| 15 | +build:linux --host_copt=-Wl,-z,noexecstack |
| 16 | +build:macos --host_copt=-Wa,--noexecstack |
| 17 | + |
| 18 | + |
| 19 | +test --keep_going |
| 20 | +test --test_output=errors |
| 21 | +test --test_timeout=1800 |
| 22 | + |
| 23 | +# platform specific config |
| 24 | +# Bazel will automatic pick platform config since we have enable_platform_specific_config set |
| 25 | +build:macos --features=-supports_dynamic_linker |
| 26 | +build:macos --cxxopt -Wno-deprecated-enum-enum-conversion |
| 27 | +build:macos --cxxopt -Wno-deprecated-anon-enum-enum-conversion |
| 28 | +build:macos --macos_minimum_os=11.0 |
| 29 | + |
| 30 | +# static link libstdc++ & libgcc on Linux |
| 31 | +build:linux --copt=-fopenmp |
| 32 | +build:linux --linkopt=-fopenmp |
| 33 | +build:linux --action_env=BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc |
| 34 | +build:linux --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a |
| 35 | + |
| 36 | +build:asan --strip=never |
| 37 | +build:asan --copt -fno-sanitize-recover=all |
| 38 | +build:asan --copt -fsanitize=address |
| 39 | +build:asan --copt -Og |
| 40 | +build:asan --copt -g |
| 41 | +build:asan --copt -fno-omit-frame-pointer |
| 42 | +build:asan --linkopt -fsanitize=address |
| 43 | +build:asan --linkopt -static-libasan |
| 44 | + |
| 45 | +build:ubsan --strip=never |
| 46 | +build:ubsan --copt -fno-sanitize-recover=all |
| 47 | +build:ubsan --copt -fsanitize=undefined |
| 48 | +build:ubsan --copt -Og |
| 49 | +build:ubsan --copt -g |
| 50 | +build:ubsan --copt -fno-omit-frame-pointer |
| 51 | +build:ubsan --linkopt -fsanitize=undefined |
| 52 | +build:ubsan --linkopt -static-libubsan |
| 53 | + |
| 54 | +build:macos-asan --features=asan |
| 55 | +build:macos-ubsan --features=ubsan |
| 56 | + |
| 57 | +test:asan --strip=never |
| 58 | +test:asan --copt -fno-sanitize-recover=all |
| 59 | +test:asan --copt -fsanitize=address |
| 60 | +test:asan --copt -O0 |
| 61 | +test:asan --copt -g |
| 62 | +test:asan --copt -fno-omit-frame-pointer |
| 63 | +test:asan --linkopt -fsanitize=address |
| 64 | +test:asan --linkopt -static-libasan |
| 65 | + |
| 66 | +test:ubsan --strip=never |
| 67 | +test:ubsan --copt -fno-sanitize-recover=all |
| 68 | +test:ubsan --copt -fsanitize=undefined |
| 69 | +test:ubsan --copt -O0 |
| 70 | +test:ubsan --copt -g |
| 71 | +test:ubsan --copt -fno-omit-frame-pointer |
| 72 | +test:ubsan --linkopt -fsanitize=undefined |
| 73 | +test:ubsan --linkopt -static-libubsan |
0 commit comments