[CMake][compiler-rt] Only set lld as available when it was built
authorPetr Hosek <phosek@google.com>
Thu, 11 Jun 2020 03:00:53 +0000 (20:00 -0700)
committerPetr Hosek <phosek@google.com>
Mon, 29 Jun 2020 22:09:05 +0000 (15:09 -0700)
commitcf1d04484344be52ada8178e41d18fd15a9b880c
treea8b4892df5d91ce9b46e43cc2c19e337c863a1b3
parentee394e6842733a38ee0953d8ee018547ecbef8fd
[CMake][compiler-rt] Only set lld as available when it was built

The `-fuse-ld=lld` check might succeed because there's a system lld,
but that lld may be out-of-date which would cause any tests that
attempt to use for LTO fail. This was observed on some of the bots.

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