summaryrefslogtreecommitdiff
path: root/libc/lib
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2022-12-05 22:20:51 +0000
committerLeonard Chan <leonardchan@google.com>2022-12-05 22:20:51 +0000
commit96d63993dd3698bbf2d6a83c035cd05faed7317b (patch)
treee87abddc6600d52883e80015a0cb0c64744a9790 /libc/lib
parent7358c29a42714eb8d7d7bcdb58688d20430689e4 (diff)
downloadllvm-96d63993dd3698bbf2d6a83c035cd05faed7317b.tar.gz
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 'libc/lib')
-rw-r--r--libc/lib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt
index 1080fdf00931..b7eb0a133a17 100644
--- a/libc/lib/CMakeLists.txt
+++ b/libc/lib/CMakeLists.txt
@@ -10,7 +10,7 @@ set_target_properties(
)
if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
- set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LLVM_TARGET_TRIPLE})
+ set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LLVM_DEFAULT_TARGET_TRIPLE})
else()
set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX})
endif()