@@ -16,39 +16,8 @@ target_link_libraries(explore_me_advanced
16
16
-lz
17
17
)
18
18
19
-
20
- #
21
- # Block defining the location of the fuzzer_no_main library that is needed to compile this example
22
- #
23
-
24
- # Uncomment and change to your own path if you want to specify a specific fuzzer_no_main library
25
- #set(FUZZER_NO_MAIN_PATH /usr/lib/clang/${CMAKE_C_COMPILER_VERSION}/lib/linux/libclang_rt.fuzzer_no_main-${CMAKE_SYSTEM_PROCESSOR}.a)
26
-
27
-
28
- # If location is not manually defined, we search for it.
29
- if (NOT DEFINED FUZZER_NO_MAIN_PATH)
30
- execute_process (COMMAND clang --print-file-name libclang_rt.fuzzer_no_main-${CMAKE_SYSTEM_PROCESSOR} .a
31
- OUTPUT_VARIABLE FUZZER_NO_MAIN_PATH
32
- OUTPUT_STRIP_TRAILING_WHITESPACE
33
- )
34
-
35
- # If the first search was not successful, we check if the dependency is there, but does not contain the architecture information
36
- # in its name, as it is common if you compile the sources yourself.
37
- if (NOT ${FUZZER_NO_MAIN_PATH} MATCHES "\/ " )
38
- execute_process (COMMAND clang --print-file-name libclang_rt.fuzzer_no_main.a
39
- OUTPUT_VARIABLE FUZZER_NO_MAIN_PATH
40
- OUTPUT_STRIP_TRAILING_WHITESPACE
41
- )
42
- endif ()
43
- endif ()
44
-
45
- #
46
- # End of fuzzer_no_main definition
47
- #
48
-
49
19
foreach (TestType IN ITEMS
50
20
structured_input_checks
51
- custom_mutator_example_checks
52
21
slow_input_checks
53
22
)
54
23
@@ -61,7 +30,6 @@ foreach(TestType IN ITEMS
61
30
)
62
31
63
32
target_link_libraries (${TestType} _test
64
- ${FUZZER_NO_MAIN_PATH}
65
33
explore_me_advanced
66
34
GTest::gtest_main
67
35
)
@@ -75,7 +43,6 @@ foreach(TestType IN ITEMS
75
43
)
76
44
77
45
target_link_libraries (${TestType} _fuzz_test
78
- ${FUZZER_NO_MAIN_PATH}
79
46
explore_me_advanced
80
47
GTest::gtest
81
48
)
0 commit comments