File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ project(luzer
77
88option (ENABLE_LUAJIT "Use LuaJIT library" OFF )
99option (LUAJIT_FRIENDLY_MODE "Use LuaJIT-friendly mode" OFF )
10+ option (OSS_FUZZ "Enable OSS Fuzz support" OFF )
11+
12+ if (DEFINED ENV{OSS_FUZZ})
13+ set (OSS_FUZZ ON )
14+ endif ()
1015
1116set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
1217include (SetClangRTLib )
Original file line number Diff line number Diff line change 11SetHwArchString (ARCH )
22# LibFuzzer library in the OSS Fuzz environment has another name.
3- if ( DEFINED ENV{ OSS_FUZZ} )
3+ if ( OSS_FUZZ)
44 set (LIBFUZZER_NO_MAIN_LIB_NAME "libclang_rt.fuzzer_no_main.a" )
55elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
66 set (LIBFUZZER_NO_MAIN_LIB_NAME "libclang_rt.fuzzer_no_main-${ARCH} .a" )
@@ -14,7 +14,7 @@ set(LIBCLANG_ASAN_NAME "libclang_rt.asan-${ARCH}.a")
1414set (LIBCLANG_UBSAN_NAME "libclang_rt.ubsan_standalone-${ARCH} .a" )
1515# Sanitizers libraries in the OSS Fuzz environment have different
1616# names.
17- if ( DEFINED ENV{ OSS_FUZZ} )
17+ if ( OSS_FUZZ)
1818 set (LIBCLANG_ASAN_NAME "libclang_rt.asan.a" )
1919 set (LIBCLANG_UBSAN_NAME "libclang_rt.ubsan_standalone.a" )
2020endif ()
You can’t perform that action at this time.
0 commit comments