Skip to content

Commit

Permalink
Fix check-all with -DLLVM_USE_SANITIZER=Address
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jul 10, 2020
1 parent 77133cc commit c06417b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions clang/test/SemaTemplate/stack-exhaustion.cpp
Expand Up @@ -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+{{}}

Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/cmake/config-ix.cmake
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion llvm/test/tools/gold/lit.local.cfg
@@ -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

0 comments on commit c06417b

Please sign in to comment.