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
This commit is contained in:
parent
88b2a86232
commit
00a620eb3b
@ -23,6 +23,8 @@ if(PYTHONINTERP_FOUND)
|
|||||||
set(LIT_ARGS "${LLVM_LIT_ARGS}")
|
set(LIT_ARGS "${LLVM_LIT_ARGS}")
|
||||||
separate_arguments(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_EXCEPTIONS)
|
||||||
pythonize_bool(LIBCXX_ENABLE_RTTI)
|
pythonize_bool(LIBCXX_ENABLE_RTTI)
|
||||||
pythonize_bool(LIBCXX_ENABLE_SHARED)
|
pythonize_bool(LIBCXX_ENABLE_SHARED)
|
||||||
|
@ -13,6 +13,7 @@ config.enable_monotonic_clock = "@LIBCXX_ENABLE_MONOTONIC_CLOCK@"
|
|||||||
config.cxx_abi = "@LIBCXX_CXX_ABI_LIBNAME@"
|
config.cxx_abi = "@LIBCXX_CXX_ABI_LIBNAME@"
|
||||||
config.use_sanitizer = "@LLVM_USE_SANITIZER@"
|
config.use_sanitizer = "@LLVM_USE_SANITIZER@"
|
||||||
config.abi_library_path = "@LIBCXX_CXX_ABI_LIBRARY_PATH@"
|
config.abi_library_path = "@LIBCXX_CXX_ABI_LIBRARY_PATH@"
|
||||||
|
config.configuration_variant = "@LIBCXX_LIT_VARIANT@"
|
||||||
|
|
||||||
# Let the main config do the real work.
|
# Let the main config do the real work.
|
||||||
lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg")
|
lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user