Make oss-fuzz happy

This commit is contained in:
lazymio 2021-10-06 15:46:25 +02:00
parent 8540b64211
commit 5572c3db43
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 4 additions and 1 deletions

View File

@ -203,6 +203,9 @@ else()
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} --target=${CMAKE_C_COMPILER_TARGET}")
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} --sysroot=${CMAKE_SYSROOT}")
endif()
if (UNICORN_FUZZ)
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} ${CMAKE_C_FLAGS}")
endif()
set(TARGET_LIST "--target-list=")
if (UNICORN_HAS_X86)
@ -1166,7 +1169,7 @@ if(UNICORN_FUZZ)
set(SAMPLES_LIB ${SAMPLES_LIB} rt)
foreach(SUFFIX ${UNICORN_FUZZ_SUFFIX})
add_executable(fuzz_emu_${SUFFIX}
${CMAKE_CURRENT_SOURCE_DIR}/tests/fuzz/fuzz_emu_${SUFFIX}
${CMAKE_CURRENT_SOURCE_DIR}/tests/fuzz/fuzz_emu_${SUFFIX}.c
${CMAKE_CURRENT_SOURCE_DIR}/tests/fuzz/onedir.c
)
target_link_libraries(fuzz_emu_${SUFFIX}