[runtimes] Simplify how we set the target triple
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 14 Jul 2021 19:54:13 +0000 (15:54 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 16 Jul 2021 14:33:39 +0000 (10:33 -0400)
commit395271ad11b8c233db1a4e0e6a76aa52e93e5aec
treeb5a21d40e3774b38b804e3f1993149aef877958d
parentba627a32e125cab988f97da8e2466398f2bc75b2
[runtimes] Simplify how we set the target triple

Instead of using TARGET_TRIPLE, which is always set to LLVM_DEFAULT_TARGET_TRIPLE,
use that variable directly to populate the various XXXX_TARGET_TRIPLE
variables in the runtimes.

This re-applies 77396bbc98 and 5099e01568, which were reverted in
850b57c5fbe because they broke the build.

Differential Revision: https://reviews.llvm.org/D106009
libcxx/CMakeLists.txt
libcxx/lib/abi/CMakeLists.txt
libcxx/test/CMakeLists.txt
libcxxabi/CMakeLists.txt
libcxxabi/test/CMakeLists.txt
libunwind/CMakeLists.txt
libunwind/test/CMakeLists.txt