Skip to content

Commit

Permalink
[libc] Exclude FreeListHeap test and fuzzer on GPU (llvm#120137)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
petrhosek authored Dec 16, 2024
1 parent 2fe2969 commit 51a0919
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libc/fuzzing/__support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ add_libc_fuzzer(
-D__LIBC_EXPLICIT_SIMD_OPT
)

if(LLVM_LIBC_FULL_BUILD)
# TODO: FreeListHeap uses the _end symbol which conflicts with the _end symbol
# defined by GPU start.cpp files so for now we exclude this fuzzer on GPU.
if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_GPU)
add_libc_fuzzer(
freelist_heap_fuzz
SRCS
Expand Down
4 changes: 3 additions & 1 deletion libc/test/src/__support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
)
endif()

if(LLVM_LIBC_FULL_BUILD)
# TODO: FreeListHeap uses the _end symbol which conflicts with the _end symbol
# defined by GPU start.cpp files so for now we exclude this test on GPU.
if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_GPU)
add_libc_test(
freelist_heap_test
SUITE
Expand Down

0 comments on commit 51a0919

Please sign in to comment.