Skip to content

Commit 45e2526

Browse files
committed
Workaround for Windows workflow
1 parent f626b87 commit 45e2526

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

libc/fuzzing/__support/CMakeLists.txt

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff 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()

libc/test/src/__support/freelist_heap_test.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
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"

libc/test/src/stdlib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)