[compiler-rt] Fix check for cross-compiling
authorEllis Hoag <ellis.sparky.hoag@gmail.com>
Thu, 18 Aug 2022 12:58:56 +0000 (05:58 -0700)
committerEllis Hoag <ellis.sparky.hoag@gmail.com>
Thu, 18 Aug 2022 20:30:46 +0000 (13:30 -0700)
commitee80903a2ceb03f4617550eba55881f7b80ebb8e
tree16b2fea7324229b44e128956082ee206d4d3a899
parent18e616c3f0dc56703f0dac0a3a55bc2447e0a4c6
[compiler-rt] Fix check for cross-compiling

When checking if we are cross-compiling, use `CMAKE_HOST_SYSTEM_NAME`
rather than `CMAKE_HOST_SYSTEM` which seems to have the full version
number attached.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D132130
compiler-rt/CMakeLists.txt