Skip to content

Commit 09d0c7c

Browse files
authored
Merge pull request #301 from sysprog21/improve-fmtscan
Port fmtscan to macOS with location tracking
2 parents a861206 + bf7a370 commit 09d0c7c

File tree

2 files changed

+353
-49
lines changed

2 files changed

+353
-49
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ qtest: $(OBJS)
5757

5858
fmtscan: tools/fmtscan.c
5959
ifeq ($(UNAME_S),Darwin)
60-
$(Q)printf "#!/usr/bin/env bash\nexit 0\n" > $@
61-
$(Q)chmod +x $@
60+
$(VECHO) " CC+LD\t$@\n"
61+
$(Q)$(CC) -o $@ $(CFLAGS) -O2 $<
6262
else
6363
$(VECHO) " CC+LD\t$@\n"
6464
$(Q)$(CC) -o $@ $(CFLAGS) $< -lrt -lpthread

0 commit comments

Comments
 (0)