[PATCH] D109716: [runtimes] Initialize LLVM_DEFAULT_TARGET_TRIPLE if not set by the caller
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 14 01:24:12 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG61f22f70caf8: [runtimes] Initialize LLVM_DEFAULT_TARGET_TRIPLE if not set by the caller (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109716/new/
https://reviews.llvm.org/D109716
Files:
runtimes/CMakeLists.txt
Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -104,6 +104,11 @@
find_package(Python3 REQUIRED COMPONENTS Interpreter)
+if (NOT LLVM_DEFAULT_TARGET_TRIPLE)
+ include(GetHostTriple)
+ get_host_triple(LLVM_DEFAULT_TARGET_TRIPLE)
+endif()
+
# Use libtool instead of ar if you are both on an Apple host, and targeting Apple.
if(CMAKE_HOST_APPLE AND APPLE)
include(UseLibtool)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109716.372425.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210914/85da7276/attachment.bin>
More information about the llvm-commits
mailing list