aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-10-16 16:36:40 -0700
committerVitaly Buka <vitalybuka@gmail.com>2017-10-16 17:38:24 -0700
commit7218a158759cc2296927e807eb39c944f26b0c1d (patch)
treec83a0f51fdf06118eb4d32144450ce59072223f8 /examples
parente4eae600ef56c295642318dc592fa106a6199a1b (diff)
downloadlibprotobuf-mutator-7218a158759cc2296927e807eb39c944f26b0c1d.tar.gz
Switch to -fsanitize=fuzzer
Fixes issue #78
Diffstat (limited to 'examples')
-rw-r--r--examples/expat/CMakeLists.txt2
-rw-r--r--examples/libfuzzer/CMakeLists.txt2
-rw-r--r--examples/libxml2/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/expat/CMakeLists.txt b/examples/expat/CMakeLists.txt
index e719d4b..f2031f5 100644
--- a/examples/expat/CMakeLists.txt
+++ b/examples/expat/CMakeLists.txt
@@ -25,7 +25,7 @@ target_link_libraries(expat_example
set_property(TARGET expat_example
PROPERTY COMPILE_FLAGS ${FUZZING_FLAGS})
set_property(TARGET expat_example
- PROPERTY LINK_FLAGS ${FUZZING_FLAGS})
+ PROPERTY LINK_FLAGS ${FUZZING_FLAGS_BINARY})
add_executable(expat_example_test
expat_example_test.cc)
diff --git a/examples/libfuzzer/CMakeLists.txt b/examples/libfuzzer/CMakeLists.txt
index a0f103f..dc39177 100644
--- a/examples/libfuzzer/CMakeLists.txt
+++ b/examples/libfuzzer/CMakeLists.txt
@@ -38,6 +38,6 @@ foreach(fuzzer libfuzzer_example libfuzzer_bin_example)
set_property(TARGET ${fuzzer}
PROPERTY COMPILE_FLAGS ${FUZZING_FLAGS})
set_property(TARGET ${fuzzer}
- PROPERTY LINK_FLAGS ${FUZZING_FLAGS})
+ PROPERTY LINK_FLAGS ${FUZZING_FLAGS_BINARY})
add_dependencies(libfuzzer_example_test ${fuzzer})
endforeach(fuzzer)
diff --git a/examples/libxml2/CMakeLists.txt b/examples/libxml2/CMakeLists.txt
index f39e35d..cf9f8a2 100644
--- a/examples/libxml2/CMakeLists.txt
+++ b/examples/libxml2/CMakeLists.txt
@@ -26,7 +26,7 @@ target_link_libraries(libxml2_example
set_property(TARGET libxml2_example
PROPERTY COMPILE_FLAGS ${FUZZING_FLAGS})
set_property(TARGET libxml2_example
- PROPERTY LINK_FLAGS ${FUZZING_FLAGS})
+ PROPERTY LINK_FLAGS ${FUZZING_FLAGS_BINARY})
add_executable(libxml2_example_test
libxml2_example_test.cc)