mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1689999 - Clean up Windows ASan build instructions r=firefox-source-docs-reviewers,sylvestre DONTBUILD
These instructions were imported from the MDN page which was written at a time when clang-cl was an unstable non-default. Nowadays it should Just Work so we can cut out some unnecessary verbosity. Differential Revision: https://phabricator.services.mozilla.com/D103636
This commit is contained in:
parent
3437ea01ea
commit
bb69a13c52
@ -94,23 +94,14 @@ Run ``mach bootstrap`` to get an updated clang-cl in your
|
||||
|
||||
::
|
||||
|
||||
ac_add_options --target=x86_64-pc-mingw32
|
||||
ac_add_options --host=x86_64-pc-mingw32
|
||||
|
||||
ac_add_options --enable-address-sanitizer
|
||||
ac_add_options --disable-jemalloc
|
||||
|
||||
export CC="clang-cl.exe"
|
||||
export CXX="clang-cl.exe"
|
||||
|
||||
export LDFLAGS="clang_rt.asan_dynamic-x86_64.lib clang_rt.asan_dynamic_runtime_thunk-x86_64.lib"
|
||||
CLANG_LIB_DIR="$(cd ~/.mozbuild/clang/lib/clang/*/lib/windows && pwd)"
|
||||
export MOZ_CLANG_RT_ASAN_LIB_PATH="${CLANG_LIB_DIR}/clang_rt.asan_dynamic-x86_64.dll"
|
||||
export LIB=$LIB:$CLANG_LIB_DIR
|
||||
|
||||
If you want to use a different LLVM (see the :ref:`clang-cl instructions <Building Firefox On Windows>`),
|
||||
alter CLANG_LIB_DIR as appropriate.
|
||||
|
||||
If you launch an ASan build under WinDbg, you may see spurious
|
||||
first-chance Access Violation exceptions. These come from ASan creating
|
||||
shadow memory pages on demand, and can be ignored. Run ``sxi av`` to
|
||||
|
Loading…
Reference in New Issue
Block a user