Skip to content

Commit ffde9b2

Browse files
leave flags in cmake
1 parent 2d09366 commit ffde9b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/CMakePresets.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
"lhs": "${hostSystemName}",
3535
"rhs": "Linux"
3636
},
37-
"environment": {
38-
"FUZZING_FLAGS": "-fsanitize=fuzzer,address,signed-integer-overflow,undefined -fno-omit-frame-pointer"
39-
},
4037
"cacheVariables": {
4138
"JWT_ENABLE_FUZZING": "ON",
4239
"CMAKE_C_COMPILER": "clang",

tests/fuzz/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ endif()
44

55
function(ADD_FUZZING_EXECUTABLE TARGET)
66
add_executable(jwt-cpp-fuzz-${TARGET} "${TARGET}.cpp")
7-
target_compile_options(jwt-cpp-fuzz-${TARGET} PRIVATE -g -O1 $ENV{FUZZING_FLAGS})
8-
target_link_options(jwt-cpp-fuzz-${TARGET} PRIVATE $ENV{FUZZING_FLAGS})
7+
target_compile_options(
8+
jwt-cpp-fuzz-${TARGET} PRIVATE -g -O1 -fsanitize=fuzzer,address,signed-integer-overflow,undefined
9+
-fno-omit-frame-pointer)
10+
target_link_options(jwt-cpp-fuzz-${TARGET} PRIVATE -fsanitize=fuzzer,address,signed-integer-overflow,undefined
11+
-fno-omit-frame-pointer)
912
target_link_libraries(jwt-cpp-fuzz-${TARGET} PRIVATE jwt-cpp::jwt-cpp)
1013
endfunction()
1114

0 commit comments

Comments
 (0)