From 46cc569049fda5b968429da6292a3fc7fb2f464f Mon Sep 17 00:00:00 2001 From: Dongge Liu Date: Wed, 14 Sep 2022 12:54:49 +1000 Subject: [PATCH] Do not remove the symlink as they are used by `Centipede`'s `Bazel` build (#8486) --- infra/base-images/base-builder/compile_centipede | 3 --- infra/base-images/base-builder/precompile_centipede | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/infra/base-images/base-builder/compile_centipede b/infra/base-images/base-builder/compile_centipede index 8fa5aa049..056a7537c 100755 --- a/infra/base-images/base-builder/compile_centipede +++ b/infra/base-images/base-builder/compile_centipede @@ -28,9 +28,6 @@ cp "$BIN_DIR/libcentipede_runner.pic.a" "$LIB_FUZZING_ENGINE" export DFTRACING_FLAGS='-fsanitize-coverage=trace-loads' export CENTIPEDE_FLAGS=`cat "$SRC/centipede/clang-flags.txt" | tr '\n' ' '` export LIBRARIES_FLAGS="-ldl -lrt -lpthread $SRC/centipede/weak.o" -export CC='/clang/bin/clang' -export CCC='/clang/bin/clang++' -export CXX='/clang/bin/clang++' export CFLAGS="$CFLAGS $DFTRACING_FLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS" export CXXFLAGS="$CXXFLAGS $DFTRACING_FLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS" diff --git a/infra/base-images/base-builder/precompile_centipede b/infra/base-images/base-builder/precompile_centipede index ac8c26a3f..9d49a5dd4 100755 --- a/infra/base-images/base-builder/precompile_centipede +++ b/infra/base-images/base-builder/precompile_centipede @@ -34,6 +34,6 @@ bazel --bazelrc=/tmp/centipede.bazelrc build -c opt :all echo 'Removing extra stuff leftover to avoid bloating image.' -rm -rf /clang-*.tgz /clang /root/.cache/* +rm -rf /clang-*.tgz /clang echo 'Done.'