summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorNicole Rabjohn <nicolerabjohn@gmail.com>2022-12-13 19:54:52 -0500
committerDavid Tenty <daltenty@ibm.com>2022-12-13 20:03:50 -0500
commit2ee308ceea88a4a3c3eb56de9ad6ed7abcdd3bde (patch)
tree925c22fb441cac0383b86c189f216b500951efc9 /runtimes
parentbeb3fa2d2efbdc1fbedee2d5c587eae1364652d3 (diff)
downloadllvm-2ee308ceea88a4a3c3eb56de9ad6ed7abcdd3bde.tar.gz
[CMake] Setting the LLVM_TARGET_TRIPLE macro based on the LLVM_DEFAULT_TARGET_TRIPLE
After D137870, LLVM_TARGET_TRIPLE is no longer defined on the runtime path into compiler-rt. This patch creates a common block of code to set LLVM_TARGET_TRIPLE equal to the default for both the llvm- and runtime- paths. Differential Revision: https://reviews.llvm.org/D138864
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 1626b7b9786c..50f782205ab4 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -176,6 +176,9 @@ endif()
# This can be used to detect whether we're in the runtimes build.
set(LLVM_RUNTIMES_BUILD ON)
+include(SetTargetTriple)
+set_llvm_target_triple()
+
foreach(entry ${runtimes})
get_filename_component(projName ${entry} NAME)