diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e72cfbe1c..28dfe5c70 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,6 +23,8 @@ if(PYTHONINTERP_FOUND) set(LIT_ARGS "${LLVM_LIT_ARGS}") separate_arguments(LIT_ARGS) + option(LIBCXX_LIT_VARIANT "Configuration variant to use for LIT." "libcxx") + pythonize_bool(LIBCXX_ENABLE_EXCEPTIONS) pythonize_bool(LIBCXX_ENABLE_RTTI) pythonize_bool(LIBCXX_ENABLE_SHARED) diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 17c1f0d8b..59c44b825 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -13,6 +13,7 @@ config.enable_monotonic_clock = "@LIBCXX_ENABLE_MONOTONIC_CLOCK@" config.cxx_abi = "@LIBCXX_CXX_ABI_LIBNAME@" config.use_sanitizer = "@LLVM_USE_SANITIZER@" config.abi_library_path = "@LIBCXX_CXX_ABI_LIBRARY_PATH@" +config.configuration_variant = "@LIBCXX_LIT_VARIANT@" # Let the main config do the real work. lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg")