This is the companion patch to D133406, intended to get the ideas of clang of compiler-rt where runtime libs are located with -DLLVM_ENABLE_RUNTIMES in sync. Both patches were necessary to run the release builds/tests for Solaris/amd64 and Linux/sparc64.
Tested on amd64-pc-solaris2.11 and sparc64-unknown-linux-gnu.
This patch is not ready for prime time: right now it causes two regressions:
Clang :: Driver/baremetal.cpp Clang :: Driver/print-libgcc-file-name-clangrt.c
where the patched driver uses -triple thumbv7m-vendor-none-eabi instead of the expected armv7m-vendor-none-eabi. I have not yet tried to investigate this in detail, just wanted to get the patch out for reference.