summaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-07-05 12:27:14 -0400
committerLouis Dionne <ldionne.2@gmail.com>2021-07-06 08:42:07 -0400
commitf7d8754312bf3d10fb902d94f2bc84e3adf12ba4 (patch)
treeb194b95993470c1f088beb57c31590a4e05cdbb8 /libcxxabi
parenta7512401e5a2cc7a1d0805fc4daf0c808e9d502d (diff)
downloadllvm-f7d8754312bf3d10fb902d94f2bc84e3adf12ba4.tar.gz
[runtimes] Move enable_32bit to the DSL
This is necessary for from-scratch configurations to support the 32-bit mode of the test suite. Differential Revision: https://reviews.llvm.org/D105435
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/test/CMakeLists.txt4
-rw-r--r--libcxxabi/test/lit.site.cfg.in1
2 files changed, 4 insertions, 1 deletions
diff --git a/libcxxabi/test/CMakeLists.txt b/libcxxabi/test/CMakeLists.txt
index b571a2437cc8..385c43eaf2cb 100644
--- a/libcxxabi/test/CMakeLists.txt
+++ b/libcxxabi/test/CMakeLists.txt
@@ -90,6 +90,10 @@ if (TARGET_TRIPLE)
serialize_lit_param(target_triple "\"${TARGET_TRIPLE}\"")
endif()
+if (LIBCXXABI_BUILD_32_BITS)
+ serialize_lit_param(enable_32bit True)
+endif()
+
configure_lit_site_cfg(
"${LIBCXXABI_TEST_CONFIG}"
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
diff --git a/libcxxabi/test/lit.site.cfg.in b/libcxxabi/test/lit.site.cfg.in
index 4015501de482..049f822b5ed5 100644
--- a/libcxxabi/test/lit.site.cfg.in
+++ b/libcxxabi/test/lit.site.cfg.in
@@ -18,7 +18,6 @@ config.cxx_library_root = "@LIBCXXABI_LIBCXX_LIBRARY_PATH@"
config.llvm_unwinder = @LIBCXXABI_USE_LLVM_UNWINDER@
config.builtins_library = "@LIBCXXABI_BUILTINS_LIBRARY@"
config.enable_threads = @LIBCXXABI_ENABLE_THREADS@
-config.enable_32bit = @LIBCXXABI_BUILD_32_BITS@
config.target_info = "@LIBCXXABI_TARGET_INFO@"
config.executor = "@LIBCXXABI_EXECUTOR@"
config.libcxxabi_shared = @LIBCXXABI_LINK_TESTS_WITH_SHARED_LIBCXXABI@