We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9d5c9f + 5633d73 commit 051742bCopy full SHA for 051742b
Makefile
@@ -8,6 +8,8 @@ GIT_HOOKS := .git/hooks/applied
8
DUT_DIR := dudect
9
all: $(GIT_HOOKS) qtest fmtscan
10
11
+UNAME_S := $(shell uname -s)
12
+
13
tid := 0
14
15
# Control test case option of valgrind
@@ -54,8 +56,13 @@ qtest: $(OBJS)
54
56
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF .$@.d $<
55
57
58
fmtscan: tools/fmtscan.c
59
+ifeq ($(UNAME_S),Darwin)
60
+ $(Q)printf "#!/usr/bin/env bash\nexit 0\n" > $@
61
+ $(Q)chmod +x $@
62
+else
63
$(VECHO) " CC+LD\t$@\n"
64
$(Q)$(CC) -o $@ $(CFLAGS) $< -lrt -lpthread
65
+endif
66
67
check: qtest
68
./$< -v 3 -f traces/trace-eg.cmd
0 commit comments