Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions grammar/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.PHONY: all clean

CFLAGS = -O3 -march=native -pipe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does more than just add CFLAGS to the Makefile, it changes the flags passed to cc.

Either convincingly motivate these changes or drop the changes to flags passed.


all: build/parser build/parser_debug

clean:
Expand All @@ -11,7 +14,7 @@ build/parser.c: grammar.peg | build
peg $^ > $@

build/parser: main.c | build/parser.c
$(CC) -O3 -o $@ $^
$(CC) $(CFLAGS) -o $@ $^

build/parser_debug: main.c
$(CC) -O3 -o $@ $^ -DYY_DEBUG
$(CC) $(CFLAGS) -o $@ $^ -DYY_DEBUG