Skip to content

Commit

Permalink
Makefile: Fix libFuzzer target
Browse files Browse the repository at this point in the history
-DCMAKE_BUILD_TYPE=Asan doesn't seem to work. Pass sanitizer flags
manually.
  • Loading branch information
nwellnhof committed Mar 25, 2024
1 parent e17bc11 commit f83bb60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ afl:
$(CMARK) $(CMARK_OPTS)

libFuzzer:
CC=clang CXX=clang++ cmake -S . -B $(BUILDDIR) \
-DCMAKE_BUILD_TYPE=Asan \
-DCMARK_LIB_FUZZER=ON
CC=clang CXX=clang++ \
CFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address \
cmake -S . -B $(BUILDDIR) \
-DCMARK_LIB_FUZZER=ON
cmake --build $(BUILDDIR)
mkdir -p fuzz/corpus
$(BUILDDIR)/fuzz/cmark-fuzz \
Expand Down

0 comments on commit f83bb60

Please sign in to comment.