We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d0513 commit d98133eCopy full SHA for d98133e
.gitignore
@@ -1,3 +1,4 @@
1
+bench
2
test-bin
3
xcuserdata
4
*.xccheckout
Makefile
@@ -25,7 +25,7 @@
25
26
CC?=gcc
27
PROVE?=prove
28
-CFLAGS=-Wall -fsanitize=address,undefined
+TEST_CFLAGS=$(CFLAGS) -Wall -fsanitize=address,undefined
29
TEST_ENV="UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1"
30
31
all:
@@ -34,9 +34,11 @@ test: test-bin
34
env $(TEST_ENV) $(PROVE) -v ./test-bin
35
36
test-bin: picohttpparser.c picotest/picotest.c test.c
37
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+ $(CC) $(TEST_CFLAGS) $(LDFLAGS) -o $@ $^
38
+
39
+bench: bench.c picohttpparser.c
40
41
clean:
- rm -f test-bin
42
+ rm -f bench test-bin
43
-.PHONY: test
44
+.PHONY: all clean test
0 commit comments