aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/base-images/base-builder/Dockerfile
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-03-03 19:10:35 -0800
committerGravatar GitHub <noreply@github.com>2021-03-03 19:10:35 -0800
commitdb02d9252e8ec27b2131cb2db70ea635d056eb79 (patch)
tree01070ab182a6ef8115b5706441fa01095023990e /infra/base-images/base-builder/Dockerfile
parent598ba8b337353d704d43ada47d59d25ab47e0c03 (diff)
[AFL++][base-builder] Precompile afl++ (#5290)
Precompile AFL like we already do for honggfuzz. This saves about a minute in compilation time of AFL targets by doing it in base-builder It only adds about 30 MB to the image size.
Diffstat (limited to 'infra/base-images/base-builder/Dockerfile')
-rw-r--r--infra/base-images/base-builder/Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile
index b726812e..05790470 100644
--- a/infra/base-images/base-builder/Dockerfile
+++ b/infra/base-images/base-builder/Dockerfile
@@ -171,9 +171,6 @@ ENV LIB_FUZZING_ENGINE="/usr/lib/libFuzzingEngine.a"
# TODO: remove after tpm2 catchup.
ENV FUZZER_LDFLAGS ""
-ENV PRECOMPILED_DIR="/usr/lib/precompiled"
-RUN mkdir $PRECOMPILED_DIR
-
WORKDIR $SRC
# TODO: switch to -b stable once we can.
@@ -189,11 +186,13 @@ RUN cd $SRC && \
rm -rf examples $SRC/oss-fuzz.tar.gz
COPY compile compile_afl compile_dataflow compile_libfuzzer compile_honggfuzz \
- compile_go_fuzzer precompile_honggfuzz srcmap write_labels.py /usr/local/bin/
+ compile_go_fuzzer precompile_honggfuzz precompile_afl srcmap \
+ write_labels.py /usr/local/bin/
COPY detect_repo.py /opt/cifuzz/
COPY ossfuzz_coverage_runner.go $GOPATH
RUN precompile_honggfuzz
+RUN precompile_afl
CMD ["compile"]