Skip to content

Commit

Permalink
Make optimization level configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary committed Nov 29, 2023
1 parent 4a63efe commit 649ca8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ endif
INCLUDES += -I$(PORTLIBS_PATH)/ppc/include


CFLAGS := -DLIBOGC_INTERNAL -g -O2 -fno-strict-aliasing -Wall -Wno-address-of-packed-member $(MACHDEP) $(INCLUDES)
OPTLEVEL ?= 2
CFLAGS := -DLIBOGC_INTERNAL -g -O$(OPTLEVEL) -fno-strict-aliasing -Wall -Wno-address-of-packed-member $(MACHDEP) $(INCLUDES)
ASFLAGS := $(MACHDEP) -mregnames -D_LANGUAGE_ASSEMBLY $(INCLUDES)

#---------------------------------------------------------------------------------
Expand Down

0 comments on commit 649ca8b

Please sign in to comment.