[libc] Check if the hermetic test target exists
authorPetr Hosek <phosek@google.com>
Sat, 1 Jul 2023 03:37:41 +0000 (03:37 +0000)
committerPetr Hosek <phosek@google.com>
Wed, 5 Jul 2023 17:09:01 +0000 (17:09 +0000)
commit80368a104e09f50ceab23f84dea97ed117804ba2
tree8e67267c4b578d04b53a21e9233897bcc0da4530
parent50a95e3e6bab6edfd99386cc2b9950dfc211dea4
[libc] Check if the hermetic test target exists

When crt1 isn't available, which is typical on baremetal, hermetic tests
aren't created and the hermetic test target won't be available.

Differential Revision: https://reviews.llvm.org/D154279
libc/cmake/modules/LLVMLibCTestRules.cmake