Skip to content

Commit

Permalink
infra: fix precompile_centipede (#12840)
Browse files Browse the repository at this point in the history
supersedes: #12838 with a less
intrusive approach

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Dec 12, 2024
1 parent ecf23fe commit bdf19d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infra/base-images/base-builder/precompile_centipede
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ echo -n "Precompiling centipede"
cd "$SRC/fuzztest/centipede/"
apt-get update && apt-get install libssl-dev -y
unset CXXFLAGS CFLAGS
# We need to use an older version of BAZEL because fuzztest relies on WORKSPACE
# Ref: https://github.com/google/oss-fuzz/pull/12838#issue-2733821058
export USE_BAZEL_VERSION=7.4.0
echo 'build --cxxopt=-stdlib=libc++ --linkopt=-lc++' >> /tmp/centipede.bazelrc
bazel --bazelrc=/tmp/centipede.bazelrc build -c opt :all
unset USE_BAZEL_VERSION

# Prepare the weak symbols:
# This is necessary because we compile the target binary and the intermediate
Expand Down

0 comments on commit bdf19d3

Please sign in to comment.