2017-12-07 21:48:38 +03:00
|
|
|
. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"
|
2017-03-10 09:13:07 +03:00
|
|
|
|
2019-08-09 08:04:04 +03:00
|
|
|
if [ -d "$MOZ_FETCHES_DIR/clang" ]; then
|
|
|
|
CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/windows && pwd)"
|
2017-03-10 09:13:07 +03:00
|
|
|
|
2020-12-11 08:06:12 +03:00
|
|
|
export LIB=$CLANG_LIB_DIR
|
2017-05-15 06:38:41 +03:00
|
|
|
export LDFLAGS="clang_rt.asan_dynamic-x86_64.lib clang_rt.asan_dynamic_runtime_thunk-x86_64.lib"
|
2017-03-10 09:13:07 +03:00
|
|
|
|
2018-10-17 17:38:52 +03:00
|
|
|
export MOZ_COPY_PDBS=1
|
Bug 1685599 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
Only sanitizer builds require a native llvm-symbolizer executable.
Ideally, we'd build llvm-symbolizer from scratch, which would be faster,
but for now, let's go the easy route and just extract it from the
corresponding native clang builds.
We don't actually do anything with the llvm-symbolizer executable on
android builds, so we don't install it in $FINAL_TARGET, avoilding
the dependency on android builds (plus, we actually don't have an
android-native llvm-symbolizer, so even if it were already shipped, it
would be the wrong file).
Differential Revision: https://phabricator.services.mozilla.com/D101076
2021-01-08 21:51:52 +03:00
|
|
|
export LLVM_SYMBOLIZER="$MOZ_FETCHES_DIR/llvm-symbolizer/llvm-symbolizer.exe"
|
2017-05-15 06:38:41 +03:00
|
|
|
export MOZ_CLANG_RT_ASAN_LIB_PATH="${CLANG_LIB_DIR}/clang_rt.asan_dynamic-x86_64.dll"
|
|
|
|
fi
|
2017-03-10 09:13:07 +03:00
|
|
|
|
|
|
|
# Enable ASan specific code and build workarounds
|
|
|
|
ac_add_options --enable-address-sanitizer
|
|
|
|
|
|
|
|
# Mandatory options required for ASan builds
|
|
|
|
ac_add_options --enable-debug-symbols
|
2020-04-23 00:18:26 +03:00
|
|
|
ac_add_options --disable-jemalloc
|
2017-03-10 09:13:07 +03:00
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-profiling
|
|
|
|
|
|
|
|
. "$topsrcdir/build/mozconfig.clang-cl"
|
2018-05-04 21:53:04 +03:00
|
|
|
. "$topsrcdir/build/mozconfig.lld-link"
|