File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,20 @@ add_libc_fuzzer(
2424 -D__LIBC_EXPLICIT_SIMD_OPT
2525)
2626
27- add_libc_fuzzer(
28- freelist_heap_fuzz
29- SRCS
30- fake_heap.s
31- freelist_heap_fuzz.cpp
32- DEPENDS
33- libc.src.__support.freelist_heap
34- )
27+ if (LLVM_LIBC_FULL_BUILD)
28+ add_libc_fuzzer(
29+ freelist_heap_fuzz
30+ SRCS
31+ fake_heap.s
32+ freelist_heap_fuzz.cpp
33+ DEPENDS
34+ libc.src.__support.freelist_heap
35+ )
36+ # TODO(#119995): Remove this once sccache on Windows no longer requires
37+ # the use of -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded.
38+ set_target_properties (
39+ freelist_heap_fuzz
40+ PROPERTIES
41+ MSVC_DEBUG_INFORMATION_FORMAT ""
42+ )
43+ endif ()
Original file line number Diff line number Diff line change 99#include " src/__support/CPP/span.h"
1010#include " src/__support/freelist_heap.h"
1111#include " src/__support/macros/config.h"
12- #include " src/stdlib/aligned_alloc.h"
13- #include " src/stdlib/calloc.h"
14- #include " src/stdlib/free.h"
15- #include " src/stdlib/malloc.h"
1612#include " src/string/memcmp.h"
1713#include " src/string/memcpy.h"
1814#include " test/UnitTest/Test.h"
Original file line number Diff line number Diff line change @@ -431,8 +431,8 @@ if(LLVM_LIBC_FULL_BUILD)
431431 libc.src.stdlib.quick_exit
432432 )
433433
434- # Only the GPU has an in-tree 'malloc' implementation.
435- if (LIBC_TARGET_OS_IS_GPU)
434+ # Only baremetal and GPU has an in-tree 'malloc' implementation.
435+ if (LIBC_TARGET_OS_IS_BAREMETAL OR LIBC_TARGET_OS_IS_GPU)
436436 add_libc_test(
437437 malloc_test
438438 HERMETIC_TEST_ONLY
You can’t perform that action at this time.
0 commit comments