[NFC] Don't run python binding tests with sanitizers

Almost any sanitizer can try to install interceptors.
This commit is contained in:
Vitaly Buka 2020-10-29 23:46:22 -07:00
parent 30e818db91
commit 772adb7d9b

View File

@ -15,13 +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/MSan because # Do not try to run if libclang was built with sanitizers 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.
if(LLVM_USE_SANITIZER MATCHES ".*(Memory|Address).*") if(NOT LLVM_USE_SANITIZER STREQUAL "")
set(RUN_PYTHON_TESTS FALSE) set(RUN_PYTHON_TESTS FALSE)
endif() endif()