Reland [compiler-rt][CMake] Properly set COMPILER_RT_HAS_LLD
authorArthur Eubanks <aeubanks@google.com>
Thu, 23 Feb 2023 19:21:33 +0000 (11:21 -0800)
committerArthur Eubanks <aeubanks@google.com>
Mon, 5 Jun 2023 21:35:52 +0000 (14:35 -0700)
commitfffa05a2bcb548d5189e8c2e52d2ed2e7ebb2498
tree30304115ea9738bc33fd6b1afe03e911dbc4ff90
parent4157bfb230da068644c4f63fb1ee35f095f26cea
Reland [compiler-rt][CMake] Properly set COMPILER_RT_HAS_LLD

LLVM_TOOL_LLD_BUILD is a relic of the pre-monorepo times. This causes us to never set COMPILER_RT_HAS_LLD.

Instead, set it from the runtimes build if lld is being built and lld is used as the compiler-rt linker.

Mark a test that requires libstdc++ as requiring Android, as other platforms may not have a libstdc++ lying around.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D144660
compiler-rt/CMakeLists.txt
compiler-rt/test/hwasan/TestCases/sizes.cpp
llvm/runtimes/CMakeLists.txt