Skip to content

Commit

Permalink
fuzz: minimum fuzzers environment lacks libcURL
Browse files Browse the repository at this point in the history
The "fuzz smoke test" job compiles various .o files to create
libgit.a and others, but the final build product of the fuzzer build
is *not* "git".  Since the job is not interested in building a
working "git", it does not define any build flags, and among the
notable ones that are missing is NO_CURL---even though the CI
environment that runs the job does not have libcURL development
package installed.

This obviously leads to a build failure.

Pass NO_CURL=NoThanks to "make" to make sure things will build
correctly, if we add any conditional compilation with "#ifdef
NO_CURL ... #endif" in the codebase.

Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
gitster committed Jun 22, 2024
1 parent 786a3e4 commit 4e66b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/run-build-and-minimal-fuzzers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
. ${0%/*}/lib.sh

group "Build fuzzers" make \
NO_CURL=NoThanks \
CC=clang \
CXX=clang++ \
CFLAGS="-fsanitize=fuzzer-no-link,address" \
Expand Down

0 comments on commit 4e66b5a

Please sign in to comment.