From 2ee308ceea88a4a3c3eb56de9ad6ed7abcdd3bde Mon Sep 17 00:00:00 2001 From: Nicole Rabjohn Date: Tue, 13 Dec 2022 19:54:52 -0500 Subject: [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 --- runtimes/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtimes') 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) -- cgit v1.2.1