[libcxx-commits] [PATCH] D56701: [CMake] Support compiler-rt builtins library in tests
Petr Hosek via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 5 11:50:37 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCXX353208: [CMake] Support compiler-rt builtins library in tests (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D56701?vs=185166&id=185366#toc
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56701/new/
https://reviews.llvm.org/D56701
Files:
docs/TestingLibcxx.rst
test/lit.site.cfg.in
utils/libcxx/test/target_info.py
Index: test/lit.site.cfg.in
===================================================================
--- test/lit.site.cfg.in
+++ test/lit.site.cfg.in
@@ -27,7 +27,7 @@
config.executor = "@LIBCXX_EXECUTOR@"
config.llvm_unwinder = @LIBCXXABI_USE_LLVM_UNWINDER@
-config.compiler_rt = @LIBCXX_USE_COMPILER_RT@
+config.builtins_library = "@LIBCXX_BUILTINS_LIBRARY@"
config.has_libatomic = @LIBCXX_HAS_ATOMIC_LIB@
config.use_libatomic = @LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB@
config.debug_build = @LIBCXX_DEBUG_BUILD@
Index: utils/libcxx/test/target_info.py
===================================================================
--- utils/libcxx/test/target_info.py
+++ utils/libcxx/test/target_info.py
@@ -251,8 +251,10 @@
flags += ['-lunwind', '-ldl']
else:
flags += ['-lgcc_s']
- compiler_rt = self.full_config.get_lit_bool('compiler_rt', False)
- if not compiler_rt:
+ builtins_lib = self.full_config.get_lit_conf('builtins_library')
+ if builtins_lib:
+ flags += [builtins_lib]
+ else:
flags += ['-lgcc']
use_libatomic = self.full_config.get_lit_bool('use_libatomic', False)
if use_libatomic:
Index: docs/TestingLibcxx.rst
===================================================================
--- docs/TestingLibcxx.rst
+++ docs/TestingLibcxx.rst
@@ -183,6 +183,14 @@
option is specified or the environment variable LIBCXX_COLOR_DIAGNOSTICS is
present then color diagnostics will be enabled.
+.. option:: llvm_unwinder
+
+ Enable the use of LLVM unwinder instead of libgcc.
+
+.. option:: builtins_library
+
+ Path to the builtins library to use instead of libgcc.
+
Environment Variables
---------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56701.185366.patch
Type: text/x-patch
Size: 1813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190205/37effe70/attachment.bin>
More information about the libcxx-commits
mailing list