[CMake] Fix lld detection after D69685
authorFangrui Song <maskray@google.com>
Sat, 28 Dec 2019 00:01:03 +0000 (16:01 -0800)
committerFangrui Song <maskray@google.com>
Sat, 28 Dec 2019 21:05:12 +0000 (13:05 -0800)
commite7853a5ce21c466ae6261ec73933672610427a07
treef924b44659431a1a394ab56e0ba553597799d6f0
parent3b6aec79b2cb9b114b0624270bb7129c52ec69ce
[CMake] Fix lld detection after D69685

D69685 actually broke lld detection for my build (probably due to CMake
processing order).

Before:

```
build projects/compiler-rt/lib/sanitizer_common/tests/Sanitizer-x86_64-Test-Nolibc: ... bin/clang || ...
```

After:

```
build projects/compiler-rt/lib/sanitizer_common/tests/Sanitizer-x86_64-Test-Nolibc: ... bin/clang bin/lld || ...
```

Differential Revision: https://reviews.llvm.org/D71950
compiler-rt/cmake/Modules/AddCompilerRT.cmake