mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1036235 - Do not use __asan_default_options with clang-cl because it is not supported yet; r=decoder
This commit is contained in:
parent
3a53982907
commit
e65619e81d
@ -1056,7 +1056,8 @@ js::RequestInterruptForAsmJSCode(JSRuntime *rt, int interruptModeRaw)
|
||||
activation->module().protectCode(rt);
|
||||
}
|
||||
|
||||
#if defined(MOZ_ASAN) && defined(JS_STANDALONE)
|
||||
// This is not supported by clang-cl yet.
|
||||
#if defined(MOZ_ASAN) && defined(JS_STANDALONE) && !defined(_MSC_VER)
|
||||
// Usually, this definition is found in mozglue (see mozglue/build/AsanOptions.cpp).
|
||||
// However, when doing standalone JS builds, mozglue is not used and we must ensure
|
||||
// that we still allow custom SIGSEGV handlers for asm.js and ion to work correctly.
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#ifndef _MSC_VER // Not supported by clang-cl yet
|
||||
|
||||
// When running with AddressSanitizer, we need to explicitely set some
|
||||
// options specific to our codebase to prevent errors during runtime.
|
||||
//
|
||||
@ -22,3 +24,5 @@ extern "C" MOZ_ASAN_BLACKLIST
|
||||
const char* __asan_default_options() {
|
||||
return "allow_user_segv_handler=1:alloc_dealloc_mismatch=0";
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user