@@ -26,9 +26,11 @@ test --test_tag_filters=-jaeger,-opentracing,-opentracing_shim,-etw,-es,-prometh
2626build --experimental_convenience_symlinks=clean
2727
2828build:windows --copt="/Brepro" --copt="/guard:cf" --copt="/guard:ehcont" --copt="/Z7" --copt="/JMC-" --copt="/sdl"
29+ build:windows --host_copt="/Brepro" --copt="/guard:cf" --copt="/guard:ehcont" --copt="/Z7" --copt="/JMC-" --copt="/sdl"
2930build:windows --linkopt="/Brepro" --linkopt="/guard:cf" --linkopt="/guard:ehcont" --linkopt="/DEBUG:FULL" --linkopt="/CETCOMPAT" --linkopt="/SWAPRUN:NET,CD" --linkopt="/OPT:REF,NOICF" --linkopt="/RELEASE" --linkopt="/DEBUGTYPE:CV,PDATA,FIXUP"
30- build:windows --copt="/Zc:strictStrings"
31- build:windows --copt="/Gy"
31+ build:windows --host_linkopt="/Brepro" --linkopt="/guard:cf" --linkopt="/guard:ehcont" --linkopt="/DEBUG:FULL" --linkopt="/CETCOMPAT" --linkopt="/SWAPRUN:NET,CD" --linkopt="/OPT:REF,NOICF" --linkopt="/RELEASE" --linkopt="/DEBUGTYPE:CV,PDATA,FIXUP"
32+ build:windows --copt="/Zc:strictStrings" --copt="/Gy"
33+ build:windows --host_copt="/Zc:strictStrings" --copt="/Gy"
3234build:windows --host_linkopt="shell32.lib"
3335# Requires Visual Studio 2019 Build Tools installed in default location with the latest compiler (14.29.30133) for x64
3436build:windows --action_env=BAZEL_VC_FULL_VERSION=14.42.34433 --action_env=BAZEL_WINSDK_FULL_VERSION=10.0.22621.0
@@ -56,6 +58,16 @@ build:macos --action_env=CC=/opt/homebrew/opt/llvm/bin/clang
5658build:macos --host_action_env=CC=/opt/homebrew/opt/llvm/bin/clang
5759#build:macos --apple_generate_dsym --output_groups=+dsyms
5860
61+ # Windows specific asan setup
62+ # common:asanwin --copt -fsanitize=address,bool,float-cast-overflow,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift-exponent,signed-integer-overflow,unreachable,vla-bound
63+ common:asanwin --copt -fsanitize=address,bool,float-cast-overflow,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift-exponent,unreachable,vla-bound
64+ common:asanwin --copt -fsanitize-address-use-after-scope
65+ common:asanwin --copt -fno-sanitize-recover=all
66+ common:asanwin --copt -fno-sanitize-ignorelist --copt -MD
67+ common:asanwin --test_env=ASAN_OPTIONS=report_globals=0:detect_odr_violation=0
68+ common:asanwin --cc_output_directory_tag=asanwin
69+ common:asanwin --@otel_sdk//:asanwin=true
70+
5971# --config=asan : Address Sanitizer.
6072common:asan --copt -DADDRESS_SANITIZER
6173common:asan --copt -fsanitize=address,bool,float-cast-overflow,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift-exponent,signed-integer-overflow,unreachable,vla-bound
@@ -158,7 +170,6 @@ build --host_copt="-DGRPC_NO_ABSL_SYNC"
158170# disable all GRPC experiments
159171# build --define=grpc_experiments_are_final=true
160172
161-
162173## This is what my ../top.bazelrc contains (not in the repo as local to my machine)
163174# build --disk_cache=f:/b/d
164175# common --repository_cache=f:/b/r
0 commit comments