Skip to content

Commit 0129ff1

Browse files
committed
[libc] Fix running 'stdbit.h' tests if file is never generated
Summary: This test was added to test the generated header. Unfortunately this doesn't work if the header is never generated. Add a check to make sure the user has included it in the list of headers.
1 parent 3a085e9 commit 0129ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ add_libc_test(
1717

1818
# stdbit_test only tests our generated stdbit.h, which is not generated in
1919
# overlay mode.
20-
if (LLVM_LIBC_FULL_BUILD)
20+
if(LLVM_LIBC_FULL_BUILD AND libc.include.stdbit IN_LIST TARGET_PUBLIC_HEADERS)
2121
add_libc_test(
2222
stdbit_test
2323
SUITE

0 commit comments

Comments
 (0)