Skip to content

Commit

Permalink
Add OPT value in posix/Makefile to hold desired optimization
Browse files Browse the repository at this point in the history
Useful when testing effect of various optimization levels to not
have to edit Makefile or reproduce CFLAGS on the command line

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Feb 12, 2019
1 parent 8a6efe6 commit c8bdc12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posix/Makefile
Expand Up @@ -22,7 +22,9 @@ all: snek

include $(SNEK_ROOT)/snek.defs

CFLAGS=-DSNEK_MEM_INCLUDE_NAME -O0 -g -I. $(SNEK_CFLAGS)
OPT=-O0

CFLAGS=-DSNEK_MEM_INCLUDE_NAME $(OPT) -g -I. $(SNEK_CFLAGS)

snek: $(SNEK_OBJ)
$(CC) $(CFLAGS) -o $@ $(SNEK_OBJ) -lm
Expand Down

0 comments on commit c8bdc12

Please sign in to comment.