[minify] Moved build script upstream (#3867)

This commit is contained in:
AdamKorcz 2020-05-23 23:47:26 +01:00 committed by GitHub
parent f301751aa5
commit d96459aa05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 15 deletions

View File

@ -14,18 +14,4 @@
# 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
}
find $GOPATH/src/github.com/tdewolff/minify/tests/*/ -maxdepth 1 -type d | while read target
do
fuzz_target=`echo $target | cut -d'/' -f 9`
compile_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz $fuzz_target-fuzzer
done
$GOPATH/src/github.com/tdewolff/minify/tests/oss-fuzz-build.sh