diff options
author | Petr Hosek <phosek@google.com> | 2022-02-15 22:59:08 -0800 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2022-11-29 04:08:24 +0000 |
commit | bec8a372fc0db95852748691c0f4933044026b25 (patch) | |
tree | 66a3bacd786b24f0edd41903173fed5b792d54aa /runtimes | |
parent | eb7e2998d135ac30198cb7e6709db3bdc155f2d0 (diff) | |
download | llvm-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.txt | 4 |
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) |