[libcxx-commits] [PATCH] D113663: [libcxxabi/runtimes] Set LLVM_HOST_TRIPLE in runtimes build
David Spickett via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 12 01:52:51 PST 2021
DavidSpickett updated this revision to Diff 386767.
DavidSpickett added a comment.
- Get host triple unconditionally
- Set default triple to host triple by default
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113663/new/
https://reviews.llvm.org/D113663
Files:
runtimes/CMakeLists.txt
Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -111,10 +111,11 @@
find_package(Python3 REQUIRED COMPONENTS Interpreter)
-if (NOT LLVM_DEFAULT_TARGET_TRIPLE)
- include(GetHostTriple)
- get_host_triple(LLVM_DEFAULT_TARGET_TRIPLE)
-endif()
+# Host triple is used by tests to check if they are running natively.
+include(GetHostTriple)
+get_host_triple(LLVM_HOST_TRIPLE)
+set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING
+ "Default target for which LLVM will generate code.")
option(LLVM_INCLUDE_TESTS "Generate build targets for the runtimes unit tests." ON)
option(LLVM_INCLUDE_DOCS "Generate build targets for the runtimes documentation." ON)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113663.386767.patch
Type: text/x-patch
Size: 782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211112/57582701/attachment-0001.bin>
More information about the libcxx-commits
mailing list