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})
387
387
388
388
if (BUILD_FUZZ_BINARY )
389
389
include (CheckSourceCompilesAndLinks )
390
- check_cxx_source_links_with_flags ("${SANITIZER_LDFLAGS} " "
390
+ check_cxx_source_compiles_with_flags ("${SANITIZER_LDFLAGS} " "
391
391
#include <cstdint>
392
392
#include <cstddef>
393
393
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)
14
14
cmake_pop_check_state ()
15
15
endmacro ()
16
16
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
-
25
17
macro (check_cxx_source_links_with_libs libs source )
26
18
cmake_push_check_state (RESET )
27
19
set (CMAKE_REQUIRED_LIBRARIES "${libs} " )
You can’t perform that action at this time.
0 commit comments