From 55701f3699cf9805ec75e6e45a41db568506b836 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 11 May 2017 23:51:48 -0700 Subject: [PATCH] Fix build coverage of libprotobuf-mutator (#598) --- projects/libprotobuf-mutator/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/libprotobuf-mutator/build.sh b/projects/libprotobuf-mutator/build.sh index 27f00e72e..0a1acc958 100755 --- a/projects/libprotobuf-mutator/build.sh +++ b/projects/libprotobuf-mutator/build.sh @@ -21,10 +21,13 @@ cp -f $SRC/*.dict $SRC/*.options $OUT/ mkdir -p build pushd build rm -rf * -cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release \ + +CXXFLAGS="$CXXFLAGS -Wl,-lpthread -Wno-unused-command-line-argument" \ + cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release \ -DLIB_PROTO_MUTATOR_WITH_ASAN=OFF \ + -DLIB_PROTO_MUTATOR_WITH_COVERAGE_FLAGS=OFF \ -DLIB_PROTO_MUTATOR_FUZZER_LIBRARIES=FuzzingEngine -ninja libxml2_example expat_example +ninja libxml2_example expat_example cp -f examples/libxml2/libxml2_example $OUT/ cp -f examples/expat/expat_example $OUT/ popd