Skip to content

Commit ca22469

Browse files
authored
[libc][stdlib] Run freelist_heap_test only in full build mode. (#95850)
1 parent 6b54ecc commit ca22469

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

libc/test/src/stdlib/CMakeLists.txt

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,22 @@ add_libc_test(
7979
libc.src.__support.CPP.span
8080
)
8181

82-
add_libc_test(
83-
freelist_heap_test
84-
SUITE
85-
libc-stdlib-tests
86-
SRCS
87-
freelist_heap_test.cpp
88-
freelist_malloc_test.cpp
89-
DEPENDS
90-
libc.src.__support.CPP.span
91-
libc.src.stdlib.freelist_heap
92-
libc.src.stdlib.malloc
93-
libc.src.string.memcmp
94-
libc.src.string.memcpy
95-
)
82+
if(LLVM_LIBC_FULL_BUILD)
83+
add_libc_test(
84+
freelist_heap_test
85+
SUITE
86+
libc-stdlib-tests
87+
SRCS
88+
freelist_heap_test.cpp
89+
freelist_malloc_test.cpp
90+
DEPENDS
91+
libc.src.__support.CPP.span
92+
libc.src.stdlib.freelist_heap
93+
libc.src.stdlib.malloc
94+
libc.src.string.memcmp
95+
libc.src.string.memcpy
96+
)
97+
endif()
9698

9799
add_fp_unittest(
98100
strtod_test

0 commit comments

Comments
 (0)