We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502f87c commit 3e1566dCopy full SHA for 3e1566d
cmake/LibFuzzer.cmake
@@ -20,7 +20,10 @@ function(SetLibFuzzerPath outvar)
20
endif ()
21
22
SetHwArchString(HW_ARCH)
23
- if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ # LibFuzzer library in the OSS Fuzz environment has another name.
24
+ if (DEFINED ENV{OSS_FUZZ})
25
+ set(lib_name "libclang_rt.fuzzer_no_main.a")
26
+ elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
27
set(lib_name "libclang_rt.fuzzer_no_main-${HW_ARCH}.a")
28
else()
29
message(FATAL_ERROR "Unsupported system: ${CMAKE_SYSTEM_NAME}")
0 commit comments