diff options
author | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2021-03-03 19:10:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 19:10:35 -0800 |
commit | db02d9252e8ec27b2131cb2db70ea635d056eb79 (patch) | |
tree | 01070ab182a6ef8115b5706441fa01095023990e /infra/base-images/base-builder/precompile_honggfuzz | |
parent | 598ba8b337353d704d43ada47d59d25ab47e0c03 (diff) | |
download | oss-fuzz-db02d9252e8ec27b2131cb2db70ea635d056eb79.tar.gz |
[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/precompile_honggfuzz')
-rwxr-xr-x | infra/base-images/base-builder/precompile_honggfuzz | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/infra/base-images/base-builder/precompile_honggfuzz b/infra/base-images/base-builder/precompile_honggfuzz index 2565bb83f..df6bb2b75 100755 --- a/infra/base-images/base-builder/precompile_honggfuzz +++ b/infra/base-images/base-builder/precompile_honggfuzz @@ -15,7 +15,7 @@ # ################################################################################ -echo -n "Precompiling honggfuzz to $PRECOMPILED_DIR..." +echo "Precompiling honggfuzz" export BUILD_OSSFUZZ_STATIC=true PACKAGES=( @@ -37,10 +37,9 @@ CC=clang CFLAGS="-O3 -funroll-loops -D_HF_LINUX_NO_BFD" make # libhfuzz.a will be added by CC/CXX linker directly during linking, # but it's defined here to satisfy the build infrastructure -ar rcs $PRECOMPILED_DIR/honggfuzz.a libhfuzz/*.o libhfcommon/*.o -cp honggfuzz $PRECOMPILED_DIR/ +ar rcs honggfuzz.a libhfuzz/*.o libhfcommon/*.o popd > /dev/null apt-get remove -y --purge ${PACKAGES[@]} apt-get autoremove -y -echo " done." +echo "Done." |