diff options
| author | Siva Chandra Reddy <sivachandra@google.com> | 2020-01-07 11:09:40 -0800 |
|---|---|---|
| committer | Siva Chandra Reddy <sivachandra@google.com> | 2020-01-07 23:04:52 -0800 |
| commit | 880734aebb396891d8e6596ae85d597ca43359b1 (patch) | |
| tree | e73943473fa60e446e9713fa63aa888019de3ea9 /libc/cmake/modules | |
| parent | 44f78f368c2cafd9dfce5d65f5e2ebfcfb30105a (diff) | |
| download | bcm5719-llvm-880734aebb396891d8e6596ae85d597ca43359b1.tar.gz bcm5719-llvm-880734aebb396891d8e6596ae85d597ca43359b1.zip | |
[libc] Add a convenience CMake rule to add testsuites.
Summary:
This rule helps avoid repeated setting of check-libc's dependency on the
various testsuites.
Reviewers: abrachet
Subscribers: mgorny, MaskRay, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D72353
Diffstat (limited to 'libc/cmake/modules')
| -rw-r--r-- | libc/cmake/modules/LLVMLibCRules.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/cmake/modules/LLVMLibCRules.cmake b/libc/cmake/modules/LLVMLibCRules.cmake index ae186c59bde..c7aac7a9296 100644 --- a/libc/cmake/modules/LLVMLibCRules.cmake +++ b/libc/cmake/modules/LLVMLibCRules.cmake @@ -371,3 +371,8 @@ function(add_libc_unittest target_name) ) endif() endfunction(add_libc_unittest) + +function(add_libc_testsuite suite_name) + add_custom_target(${suite_name}) + add_dependencies(check-libc ${suite_name}) +endfunction(add_libc_testsuite) |

