@@ -172,21 +172,23 @@ set(IWASM_DIR ${REPO_ROOT_DIR}/core/iwasm)
172172# Global setting
173173add_compile_options (-Wno-unused-command-line-argument )
174174
175- # Enable fuzzer
176- add_definitions (-DWASM_ENABLE_FUZZ_TEST=1 )
177- # '-fsanitize=vptr' not allowed with '-fno-rtti
178- # But, LLVM by default, disables the use of `rtti` in the compiler
179- add_compile_options (-fsanitize=fuzzer -fno-sanitize=vptr )
180- add_link_options (-fsanitize=fuzzer -fno-sanitize=vptr )
181-
182- # Enable sanitizers if not in oss-fuzz environment
183- set (CFLAGS_ENV $ENV{CFLAGS} )
184- string (FIND "${CFLAGS_ENV} " "-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" FUZZ_POS)
185- if (FUZZ_POS GREATER -1)
186- set (IN_OSS_FUZZ 1)
187- else ()
188- set (IN_OSS_FUZZ 0)
189- endif ()
175+ # # Enable fuzzer
176+ # add_definitions(-DWASM_ENABLE_FUZZ_TEST=1)
177+ # # '-fsanitize=vptr' not allowed with '-fno-rtti
178+ # # But, LLVM by default, disables the use of `rtti` in the compiler
179+ # add_compile_options(-fsanitize=fuzzer -fno-sanitize=vptr)
180+ # add_link_options(-fsanitize=fuzzer -fno-sanitize=vptr)
181+
182+ # # Enable sanitizers if not in oss-fuzz environment
183+ # set(CFLAGS_ENV $ENV{CFLAGS})
184+ # string(FIND "${CFLAGS_ENV}" "-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" FUZZ_POS)
185+ # if (FUZZ_POS GREATER -1)
186+ # set(IN_OSS_FUZZ 1)
187+ # else()
188+ # set(IN_OSS_FUZZ 0)
189+ # endif()
190+
191+ # include(${CMAKE_CURRENT_LIST_DIR}/../sanitizer_flags.cmake)
190192
191193add_subdirectory (aot-compiler )
192194add_subdirectory (wasm-mutator )
0 commit comments