forked from OSchip/llvm-project
[NFC] Don't run clang/bindings/python/tests with msan
Fixes check-all with LLVM_USE_SANITIZER=Memory
This commit is contained in:
parent
c23cb8b032
commit
edd6ed3641
|
@ -15,14 +15,13 @@ if(NOT LLVM_ENABLE_PIC)
|
||||||
set(RUN_PYTHON_TESTS FALSE)
|
set(RUN_PYTHON_TESTS FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Do not try to run if libclang was built with ASan because
|
# Do not try to run if libclang was built with ASan/MSan because
|
||||||
# the sanitizer library will likely be loaded too late to perform
|
# the sanitizer library will likely be loaded too late to perform
|
||||||
# interception and will then fail.
|
# interception and will then fail.
|
||||||
# We could use LD_PRELOAD/DYLD_INSERT_LIBRARIES but this isn't
|
# We could use LD_PRELOAD/DYLD_INSERT_LIBRARIES but this isn't
|
||||||
# portable so its easier just to not run the tests when building
|
# portable so its easier just to not run the tests when building
|
||||||
# with ASan.
|
# with ASan.
|
||||||
list(FIND LLVM_USE_SANITIZER "Address" LLVM_USE_ASAN_INDEX)
|
if(LLVM_USE_SANITIZER MATCHES ".*(Memory|Address).*")
|
||||||
if(NOT LLVM_USE_ASAN_INDEX EQUAL -1)
|
|
||||||
set(RUN_PYTHON_TESTS FALSE)
|
set(RUN_PYTHON_TESTS FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue