Bug 1814798 - pt 1. Add bool to enable/disable PHC at runtime r=glandium
[gecko.git] / build / win64 / mozconfig.asan
blob8aa1810b7815d5432886cbf30c174f321cc64204
1 . "$topsrcdir/browser/config/mozconfigs/win64/common-win64"
3 if [ -d "$MOZ_FETCHES_DIR/clang" ]; then
4     CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/windows && pwd)"
6     export LDFLAGS="clang_rt.asan_dynamic-x86_64.lib clang_rt.asan_dynamic_runtime_thunk-x86_64.lib"
8     export MOZ_COPY_PDBS=1
9     export LLVM_SYMBOLIZER="$MOZ_FETCHES_DIR/llvm-symbolizer/bin/llvm-symbolizer.exe"
10     export MOZ_CLANG_RT_ASAN_LIB_PATH="${CLANG_LIB_DIR}/clang_rt.asan_dynamic-x86_64.dll"
13 # Enable ASan specific code and build workarounds
14 ac_add_options --enable-address-sanitizer
16 # Mandatory options required for ASan builds
17 ac_add_options --enable-debug-symbols
18 ac_add_options --disable-jemalloc
19 ac_add_options --disable-crashreporter
20 ac_add_options --disable-profiling
22 . "$topsrcdir/build/mozconfig.clang-cl"
23 . "$topsrcdir/build/mozconfig.lld-link"