File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2020# https://github.com/google/oss-fuzz/pull/12858), to overcome the issue
2121# mentioned in https://github.com/bazelbuild/bazel/issues/23681.
2222export USE_BAZEL_VERSION=7.4.0
23+ export GOPROXY=https://goproxy.cn,direct
24+ export BAZELISK_SKIP_CERT_CHECK=true
2325
2426declare -r FUZZ_TARGET_QUERY='
2527 let all_fuzz_tests = attr(tags, "fuzz_target", "test/...") in
@@ -120,6 +122,11 @@ then
120122fi
121123) "
122124
125+ bazel fetch ${EXTRA_BAZEL_FLAGS} ${OSS_FUZZ_TARGETS[*]} || true
126+ OUTPUT_BASE=$( bazel info output_base 2> /dev/null || echo " " )
127+ if [ -n " $OUTPUT_BASE " ]; then
128+ find " $OUTPUT_BASE /external" -name port_def.inc -exec sed -i ' s/# define PROTOBUF_CONSTINIT constinit/# define PROTOBUF_CONSTINIT/g' {} + || true
129+ fi
123130
124131# Asssuming we have ~32 cores and ~28.8 GiB RAM. By limiting the
125132# number of CPUs (--local_cpu_resources) we limit the per-CPU mem-usage.
You can’t perform that action at this time.
0 commit comments