]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
only build the fuzzer if we have -fsanitize=fuzzer
authorAlan T. DeKok <aland@freeradius.org>
Tue, 11 Feb 2025 21:47:13 +0000 (16:47 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 11 Feb 2025 21:47:13 +0000 (16:47 -0500)
src/main/fuzzer.mk

index e3c029fd819df92610676317a10c560e94032e3b..11631af8dc4d9068705c7428487ade5737c3c83a 100644 (file)
@@ -1,3 +1,4 @@
+ifneq "$(findstring fuzzer,${CFLAGS})" ""
 TARGET         := fuzzer
 SOURCES                := fuzzer.c
 
@@ -15,3 +16,5 @@ fuzzer.run: $(BUILD_DIR)/bin/fuzzer
 .PHONY: fuzzer.help
 fuzzer.help:
        @echo ./build/make/jlibtool --mode=execute ./build/bin/local/fuzzer -max_len=512 -D share src/tests/fuzzer
+
+endif