aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/p9
diff options
context:
space:
mode:
authorGravatar Catena cyber <35799796+catenacyber@users.noreply.github.com>2020-11-19 23:18:25 +0100
committerGravatar GitHub <noreply@github.com>2020-11-19 14:18:25 -0800
commit217175212ba1d484017c32fe6518f85c1aa1273f (patch)
treebf48c327c2cd39c6fd02f1469190c90b2f2ed5ec /projects/p9
parent772d0efef58adee26223efeac80a9c8c44de496a (diff)
[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 <mmoroz@chromium.org>
Diffstat (limited to 'projects/p9')
-rw-r--r--projects/p9/build.sh12
1 files changed, 1 insertions, 11 deletions
diff --git a/projects/p9/build.sh b/projects/p9/build.sh
index 34a0eac2..9e194aab 100644
--- a/projects/p9/build.sh
+++ b/projects/p9/build.sh
@@ -14,16 +14,6 @@
# limitations under the License.
#
################################################################################
-function compile_fuzzer {
- path=$1
- function=$2
- fuzzer=$3
- # Compile and instrument all Go files relevant to this fuzz target.
- go-fuzz -func $function -o $fuzzer.a $path
- # Link Go code ($fuzzer.a) with fuzzing engine to produce fuzz target binary.
- $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer
-}
-
-compile_fuzzer github.com/hugelgupf/p9/p9 Fuzz p9_fuzzer
+compile_go_fuzzer github.com/hugelgupf/p9/p9 Fuzz p9_fuzzer