Fix building & repro on local source (#4594)

* Fix building & repro on local source

With this
https://google.github.io/oss-fuzz/advanced-topics/reproducing/#reproduce-using-local-source-checkout
actually works

* Update Dockerfile

Co-authored-by: Abhishek Arya <inferno@chromium.org>
This commit is contained in:
apascovici 2020-11-03 09:49:47 -08:00 committed by GitHub
parent edf81080a8
commit d987cc1021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -17,6 +17,6 @@
FROM gcr.io/oss-fuzz-base/base-builder FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make RUN apt-get update && apt-get install -y make
RUN git clone --depth 1 https://github.com/bellard/quickjs quickjs RUN git clone --depth 1 https://github.com/bellard/quickjs quickjs
WORKDIR $SRC/ WORKDIR $SRC/quickjs
COPY build.sh $SRC/ COPY build.sh $SRC/
COPY fuzz*.c $SRC/ COPY fuzz*.c $SRC/

View File

@ -16,7 +16,6 @@
################################################################################ ################################################################################
# build quickjs # build quickjs
cd quickjs
# Makefile should not override CFLAGS # Makefile should not override CFLAGS
sed -i -e 's/CFLAGS=/CFLAGS+=/' Makefile sed -i -e 's/CFLAGS=/CFLAGS+=/' Makefile
CONFIG_CLANG=y make libquickjs.a CONFIG_CLANG=y make libquickjs.a