[compiler-rt] Handle non-canonical triples with new runtime lib layout
authorRainer Orth <ro@gcc.gnu.org>
Sun, 11 Sep 2022 09:25:53 +0000 (11:25 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Sun, 11 Sep 2022 09:25:53 +0000 (11:25 +0200)
commitcadc9cdedfef892b00b17658a823e4846a71e3ac
treeb92a357adc5ceb2d1c28199707cf2adeaf31a530
parent2bb5535b58edb04358e58495b302c9613b101227
[compiler-rt] Handle non-canonical triples with new runtime lib layout

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`.

Differential Revision: https://reviews.llvm.org/D133406
compiler-rt/cmake/Modules/CompilerRTUtils.cmake