Skip to content

Commit 051742b

Browse files
authored
Merge pull request #272 from sysprog21/skip-macos
Skip fmtscan tool generation on macOS
2 parents b9d5c9f + 5633d73 commit 051742b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ GIT_HOOKS := .git/hooks/applied
88
DUT_DIR := dudect
99
all: $(GIT_HOOKS) qtest fmtscan
1010

11+
UNAME_S := $(shell uname -s)
12+
1113
tid := 0
1214

1315
# Control test case option of valgrind
@@ -54,8 +56,13 @@ qtest: $(OBJS)
5456
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF .$@.d $<
5557

5658
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
5763
$(VECHO) " CC+LD\t$@\n"
5864
$(Q)$(CC) -o $@ $(CFLAGS) $< -lrt -lpthread
65+
endif
5966

6067
check: qtest
6168
./$< -v 3 -f traces/trace-eg.cmd

0 commit comments

Comments
 (0)