diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -241,6 +241,7 @@ option(SANITIZER_USE_STATIC_CXX_ABI "Use static libc++abi." ${DEFAULT_SANITIZER_USE_STATIC_CXX_ABI}) +pythonize_bool(SANITIZER_USE_STATIC_CXX_ABI) set(DEFAULT_COMPILER_RT_USE_BUILTINS_LIBRARY OFF) if (FUCHSIA) diff --git a/compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp b/compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp --- a/compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp +++ b/compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp @@ -1,6 +1,8 @@ // Regression test for // https://bugs.llvm.org/show_bug.cgi?id=32434 +// REQUIRES: shared_cxxabi + // RUN: %clangxx_asan -fexceptions -O0 %s -o %t // RUN: %run %t diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py --- a/compiler-rt/test/lit.common.cfg.py +++ b/compiler-rt/test/lit.common.cfg.py @@ -351,6 +351,9 @@ if sanitizer_can_use_cxxabi: config.available_features.add('cxxabi') +if not getattr(config, 'sanitizer_uses_static_cxxabi', False): + config.available_features.add('shared_cxxabi') + if config.has_lld: config.available_features.add('lld-available')