diff options
author | Max Moroz <mmoroz@chromium.org> | 2020-04-16 10:03:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 10:03:03 -0700 |
commit | 13cb49b86ca7d38072b895a8708a38655d64d299 (patch) | |
tree | d03a8560536f88b8daa1a680528ff94cf8d58f70 /docs | |
parent | 82175dc123ffde1ad6c9a13f459c188e26b403ae (diff) | |
download | oss-fuzz-13cb49b86ca7d38072b895a8708a38655d64d299.tar.gz |
[Go] remove "-lpthread" flag from "compile_fuzzer" and fix comments (#2714). (#3657)
* [Go] remove "-lpthread" flag from "compile_fuzzer" and fix comments (#2714).
* fix unrelated go-dns and gonids errors
* simplify golang/build.sh as per Abhishek's comment
Diffstat (limited to 'docs')
-rw-r--r-- | docs/getting-started/new-project-guide/go_lang.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/getting-started/new-project-guide/go_lang.md b/docs/getting-started/new-project-guide/go_lang.md index f58716dfc..be7482c33 100644 --- a/docs/getting-started/new-project-guide/go_lang.md +++ b/docs/getting-started/new-project-guide/go_lang.md @@ -82,11 +82,11 @@ function compile_fuzzer { function=$2 fuzzer=$3 - # Instrument all Go files relevant to this fuzzer + # Compile and instrument all Go files relevant to this fuzz target. go-fuzz -func $function -o $fuzzer.a $path - # Instrumented, compiled Go ($fuzzer.a) + fuzzing engine = fuzzer binary - $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -lpthread -o $OUT/$fuzzer + # 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 ./pkg/compiler Fuzz compiler_fuzzer |