From 00a620eb3bf6d07735128cad7ef2a55da817e8f9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 15 Jan 2015 18:35:04 +0000 Subject: [PATCH] Add a cmake option for LIT configuration variant. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@226185 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 2 ++ test/lit.site.cfg.in | 1 + 2 files changed, 3 insertions(+) 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")