Lagom: Use -fsanitize=fuzzer, not -fsanitize=fuzzer-no-link
Fuzzers don't link for me without this change.
This commit is contained in:
parent
d775dea13c
commit
39ce7251f7
Notes:
sideshowbarker
2024-07-19 02:29:30 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/39ce7251f76 Pull-request: https://github.com/SerenityOS/serenity/pull/4075
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|||
option(ENABLE_FUZZER_SANITIZER "Enable fuzzer sanitizer testing in clang" FALSE)
|
||||
if (ENABLE_FUZZER_SANITIZER)
|
||||
add_definitions(-fsanitize=fuzzer -fno-omit-frame-pointer)
|
||||
set(LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=fuzzer-no-link")
|
||||
set(LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=fuzzer")
|
||||
endif()
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LINKER_FLAGS}")
|
||||
|
|
Loading…
Add table
Reference in a new issue