[PATCH] D133406: [compiler-rt] Handle non-canonical triples with new runtime lib layout
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 02:02:28 PDT 2022
ro created this revision.
ro added reviewers: vitalybuka, MaskRay.
ro added a project: Sanitizers.
Herald added subscribers: Enna1, StephenFan, fedor.sergeev, mgorny, dberris, jyknight.
Herald added a project: All.
ro requested review of this revision.
Herald added a subscriber: Sanitizers.
As described in Issue #54196 <https://github.com/llvm/llvm-project/issues/54196>, the ideas of `clang` and `compiler-rt` where runtime libs are located with `-DLLVM_ENABLE_RUNTIMES` can differ. This is the `compiler-rt` side of the patch I've used to get them in sync for the `amd64-pc-solaris2.11` and `sparc64-unknown-linux-gnu` release builds.
Tested on `amd64-pc-solaris2.11` and `sparc64-unknown-linux-gnu`.
I don't expect this to be ready as is, just posting for reference.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133406
Files:
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
Index: compiler-rt/cmake/Modules/CompilerRTUtils.cmake
===================================================================
--- compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+++ compiler-rt/cmake/Modules/CompilerRTUtils.cmake
@@ -484,6 +484,10 @@
set(target "${COMPILER_RT_DEFAULT_TARGET_TRIPLE}")
elseif(ANDROID AND ${arch} STREQUAL "i386")
set(target "i686${triple_suffix}")
+ elseif(${arch} STREQUAL "amd64")
+ set(target "x86_64${triple_suffix}")
+ elseif(${arch} STREQUAL "sparc64")
+ set(target "sparcv9${triple_suffix}")
else()
set(target "${arch}${triple_suffix}")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133406.458383.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220907/0bd13105/attachment.bin>
More information about the llvm-commits
mailing list