[compiler-rt][cmake] Simplify COMPILER_RT_HAS_VERSION_SCRIPT tests
authorRainer Orth <ro@gcc.gnu.org>
Thu, 30 Jul 2020 08:27:36 +0000 (10:27 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 30 Jul 2020 08:27:36 +0000 (10:27 +0200)
commitbbe509920721cf5d42990339e4daf43e27073ec4
tree2e47f7fac748924cfdb64c5e37d7c265c1f95112
parent18805320365314ecbbebc65279c142a12ae9c0c2
[compiler-rt][cmake] Simplify COMPILER_RT_HAS_VERSION_SCRIPT tests

As requested in the review, this patch removes the additional conditions in
the `COMPILER_RT_HAS_VERSION_SCRIPT` tests.

Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D84559
compiler-rt/lib/asan/CMakeLists.txt
compiler-rt/lib/ubsan/CMakeLists.txt