From 217175212ba1d484017c32fe6518f85c1aa1273f Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Thu, 19 Nov 2020 23:18:25 +0100 Subject: [infra] Use generic compile_go_fuzzer for golang projects (#4659) * Use generic compile_go_fuzzer for golang projects * fix the copyright in the new script Co-authored-by: Max Moroz --- projects/vitess/build.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'projects/vitess') diff --git a/projects/vitess/build.sh b/projects/vitess/build.sh index 99ab3ed9..489bf4bb 100755 --- a/projects/vitess/build.sh +++ b/projects/vitess/build.sh @@ -14,13 +14,5 @@ # limitations under the License. # ################################################################################ -function compile_fuzzer { - path=$1 - function=$2 - fuzzer=$3 - go-fuzz -func $function -o $fuzzer.a $path - - $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer -} -compile_fuzzer github.com/vitessio/vitess/go/vt/sqlparser Fuzz fuzz +compile_go_fuzzer github.com/vitessio/vitess/go/vt/sqlparser Fuzz fuzz -- cgit v1.2.3