diff options
author | Leonard Chan <leonardchan@google.com> | 2022-12-05 22:20:51 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2022-12-05 22:20:51 +0000 |
commit | 96d63993dd3698bbf2d6a83c035cd05faed7317b (patch) | |
tree | e87abddc6600d52883e80015a0cb0c64744a9790 /runtimes | |
parent | 7358c29a42714eb8d7d7bcdb58688d20430689e4 (diff) | |
download | llvm-96d63993dd3698bbf2d6a83c035cd05faed7317b.zip llvm-96d63993dd3698bbf2d6a83c035cd05faed7317b.tar.gz llvm-96d63993dd3698bbf2d6a83c035cd05faed7317b.tar.bz2 |
Revert "[CMake] Use LLVM_TARGET_TRIPLE in runtimes"
This reverts commit bec8a372fc0db95852748691c0f4933044026b25.
This causes many of these errors to appear when rebuilding runtimes part
of fuchsia's toolchain:
ld.lld: error:
/usr/local/google/home/paulkirth/llvm-upstream/build/lib/x86_64-unknown-linux-gnu/libunwind.a(libunwind.cpp.o)
is incompatible with elf64-x86-64
This can be reproduced by making a complete toolchain, saving any source
file with no changes, then rerunning ninja distribution.
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 39c58f9..a735096 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_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING - "Target for which the runtimes will be built.") +set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING + "Default 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) |