Skip to content

Commit 51a0919

Browse files
authored
[libc] Exclude FreeListHeap test and fuzzer on GPU (#120137)
FreeListHeap uses the _end symbol which conflicts with the _end symbol defined by GPU start.cpp files so for now we exclude the test and the fuzzer on GPU.
1 parent 2fe2969 commit 51a0919

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libc/fuzzing/__support/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ add_libc_fuzzer(
2424
-D__LIBC_EXPLICIT_SIMD_OPT
2525
)
2626

27-
if(LLVM_LIBC_FULL_BUILD)
27+
# TODO: FreeListHeap uses the _end symbol which conflicts with the _end symbol
28+
# defined by GPU start.cpp files so for now we exclude this fuzzer on GPU.
29+
if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_GPU)
2830
add_libc_fuzzer(
2931
freelist_heap_fuzz
3032
SRCS

libc/test/src/__support/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
5555
)
5656
endif()
5757

58-
if(LLVM_LIBC_FULL_BUILD)
58+
# TODO: FreeListHeap uses the _end symbol which conflicts with the _end symbol
59+
# defined by GPU start.cpp files so for now we exclude this test on GPU.
60+
if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_GPU)
5961
add_libc_test(
6062
freelist_heap_test
6163
SUITE

0 commit comments

Comments
 (0)