diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2023-05-04 19:09:19 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2023-05-04 19:09:19 +0000 |
commit | b77265711b390a6905e8901694d75f4b3812c71a (patch) | |
tree | 442d7e4b2b0c691aacf7aaf869eb51d05d41476c /libc/cmake | |
parent | fb6faf4798b1cb327e719898e2ea6eff7f597c49 (diff) | |
download | llvm-b77265711b390a6905e8901694d75f4b3812c71a.tar.gz |
Revert "[libc] Improve the add_libc_test rule."
This reverts commit fb6faf4798b1cb327e719898e2ea6eff7f597c49 as the
aarch64 builders are failing.
Diffstat (limited to 'libc/cmake')
-rw-r--r-- | libc/cmake/modules/LLVMLibCTestRules.cmake | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake index cb2e2a66ae4f..4c1b143b6618 100644 --- a/libc/cmake/modules/LLVMLibCTestRules.cmake +++ b/libc/cmake/modules/LLVMLibCTestRules.cmake @@ -705,18 +705,10 @@ function(add_libc_test test_name) "" # Multi-value arguments ${ARGN} ) - get_fq_target_name(${test_name} fq_target_name) - if(LIBC_TEST_UNIT_TEST_ONLY AND LIBC_TEST_HERMETIC_TEST_ONLY) - message(FATAL_ERROR - "${fq_target_name}: Only one of UNIT_TEST_ONLY and HERMETIC_TEST_ONLY can be listed.") - endif() - add_custom_target(${fq_target_name}) if(LIBC_ENABLE_UNITTESTS AND NOT LIBC_TEST_HERMETIC_TEST_ONLY) add_libc_unittest(${test_name}.__unit__ ${LIBC_TEST_UNPARSED_ARGUMENTS}) - add_dependencies(${fq_target_name} ${fq_target_name}.__unit__) endif() if(LIBC_ENABLE_HERMETIC_TESTS AND NOT LIBC_TEST_UNIT_TEST_ONLY) add_libc_hermetic_test(${test_name}.__hermetic__ ${LIBC_TEST_UNPARSED_ARGUMENTS}) - add_dependencies(${fq_target_name} ${fq_target_name}.__hermetic__) endif() endfunction(add_libc_test) |