Skip to content

Commit 5633d73

Browse files
committed
Skip fmtscan tool generation on macOS
Provide dummy shell script instead. Future plans may include reworking fmtscan to eliminate POSIX message queue dependency for better portability. Change-Id: I8a30415f69858f817d0844d0979b0fb9fb2a70e5
1 parent b9d5c9f commit 5633d73

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

+7
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)