aboutsummaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2022-02-15 22:59:08 -0800
committerPetr Hosek <phosek@google.com>2022-11-29 04:08:24 +0000
commitbec8a372fc0db95852748691c0f4933044026b25 (patch)
tree66a3bacd786b24f0edd41903173fed5b792d54aa /runtimes
parenteb7e2998d135ac30198cb7e6709db3bdc155f2d0 (diff)
downloadllvm-bec8a372fc0db95852748691c0f4933044026b25.zip
llvm-bec8a372fc0db95852748691c0f4933044026b25.tar.gz
llvm-bec8a372fc0db95852748691c0f4933044026b25.tar.bz2
[CMake] Use LLVM_TARGET_TRIPLE in runtimes
This variable is derived from LLVM_DEFAULT_TARGET_TRIPLE by default, but using a separate variable allows additional normalization to be performed if needed. Differential Revision: https://reviews.llvm.org/D137451
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 3f3ef4e..688d912 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -154,8 +154,8 @@ find_package(Python3 REQUIRED COMPONENTS Interpreter)
# 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 the runtimes will be built.")
+set(LLVM_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING
+ "Target for which the runtimes will be built.")
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)