Skip to content

Commit

Permalink
fuzzer: Fix build when building with libcap
Browse files Browse the repository at this point in the history
Signed-off-by: Mobin Aydinfar <[email protected]>
  • Loading branch information
mobin-2008 committed Feb 7, 2025
1 parent b2ca1a4 commit 98655be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/cptests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fuzz_objects = $(foreach obj,$(parent_objs),fuzz-$(obj))
$(MAKE) -C ../../../build all

fuzz: ../../../build/includes/mconfig.h fuzz.cc $(fuzz_parent_test_objects) $(fuzz_objects)
clang++ -std=c++11 -g -O1 -I../test-includes -I../../../dasynq/include -I../../../build/includes/ -I../../includes -fsanitize=fuzzer,address,undefined,leak fuzz.cc $(fuzz_parent_test_objects) $(fuzz_objects) -o fuzz
clang++ -std=c++11 -g -O1 -I../test-includes -I../../../dasynq/include -I../../../build/includes/ -I../../includes -fsanitize=fuzzer,address,undefined,leak fuzz.cc $(fuzz_parent_test_objects) $(fuzz_objects) $(LDFLAGS_LIBCAP) -o fuzz

$(fuzz_parent_test_objects): fuzz-%.o: ../%.cc
clang -O1 -fsanitize=address,undefined,fuzzer-no-link,leak -MMD -MP -I../test-includes -I../../../dasynq/include -I../../../build/includes/ -I../../includes -c $< -o $@
Expand Down

0 comments on commit 98655be

Please sign in to comment.