Skip to content

Commit 3736e74

Browse files
skip checking the compiler since this causes errors with the same CMake uses in combinations with the fuzz sanitizer flag
https://github.com/prince-chrismc/jwt-cpp/actions/runs/7481024827/job/20361722539?pr=33 ``` /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22 CMakeFiles/cmTC_ff7c6.dir/testCCompiler.c.o: in function `main': testCCompiler.c:(.text.main[main]+0x0): multiple definition of `main'; /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o):(.text.main+0x0): first defined here /usr/bin/ld: /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o): in function `main': (.text.main+0x12): undefined reference to `LLVMFuzzerTestOneInput' ```
1 parent 8980dd5 commit 3736e74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/CMakePresets.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
},
4141
"cacheVariables": {
4242
"JWT_ENABLE_FUZZING": "ON",
43+
"CMAKE_C_COMPILER_WORKS": "ON",
44+
"CMAKE_CXX_COMPILER_WORKS": "ON",
4345
"CMAKE_C_FLAGS": "$env{FUZZING_FLAGS} -g -O1",
4446
"CMAKE_CXX_FLAGS": "$env{FUZZING_FLAGS} -g -O1",
4547
"CMAKE_EXE_LINKER_FLAGS": "$env{FUZZING_FLAGS}",

0 commit comments

Comments
 (0)