File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ target_link_options(sanitize_interface INTERFACE ${SANITIZER_LDFLAGS})
387387
388388if (BUILD_FUZZ_BINARY)
389389 include (CheckSourceCompilesAndLinks)
390- check_cxx_source_links_with_flags ("${SANITIZER_LDFLAGS} " "
390+ check_cxx_source_compiles_with_flags ("${SANITIZER_LDFLAGS} " "
391391 #include <cstdint>
392392 #include <cstddef>
393393 extern \" C\" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { return 0; }
Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ macro(check_cxx_source_compiles_with_flags flags source)
1414 cmake_pop_check_state()
1515endmacro ()
1616
17- macro (check_cxx_source_links_with_flags flags source )
18- cmake_push_check_state(RESET)
19- set (CMAKE_REQUIRED_FLAGS ${flags} )
20- list (JOIN CMAKE_REQUIRED_FLAGS " " CMAKE_REQUIRED_FLAGS)
21- check_cxx_source_compiles("${source} " ${ARGN} )
22- cmake_pop_check_state()
23- endmacro ()
24-
2517macro (check_cxx_source_links_with_libs libs source )
2618 cmake_push_check_state(RESET)
2719 set (CMAKE_REQUIRED_LIBRARIES "${libs} " )
You can’t perform that action at this time.
0 commit comments