Fix check-all with -DLLVM_USE_SANITIZER=Address

This commit is contained in:
Vitaly Buka 2020-07-10 01:24:58 -07:00
parent 77133cc1e2
commit c06417b24d
3 changed files with 10 additions and 2 deletions

View file

@ -8,6 +8,9 @@
// implementation limits, just disable the test.
// UNSUPPORTED: system-netbsd
// asan has own stack-overflow check.
// UNSUPPORTED: asan
// expected-warning@* 0-1{{stack nearly exhausted}}
// expected-note@* 0+{{}}

View file

@ -650,7 +650,7 @@ endif()
# TODO: Add builtins support.
if (CRT_SUPPORTED_ARCH AND OS_NAME MATCHES "Linux")
if (CRT_SUPPORTED_ARCH AND OS_NAME MATCHES "Linux" AND NOT LLVM_USE_SANITIZER)
set(COMPILER_RT_HAS_CRT TRUE)
else()
set(COMPILER_RT_HAS_CRT FALSE)

View file

@ -1,2 +1,7 @@
if (not 'ld_plugin' in config.available_features):
if (not 'ld_plugin' in config.available_features):
config.unsupported = True
# gold can't load instrumented plugin.
for san in ['asan', 'msan', 'ubsan']:
if (san in config.available_features):
config.unsupported = True