Skip to content

Commit 254f779

Browse files
committed
Added optimisation flag to makefile
1 parent 3e7cb86 commit 254f779

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
include make/Functions.mk
88
include make/Platform.mk
99

10+
optimisation := -O3
11+
1012
# Set debugging build flags
1113
DEBUG ?= 1
1214
ifeq ($(DEBUG), 1)
1315
override CXXFLAGS += -g -DDEBUG -DCC_LOG_LEVEL=2
16+
optimisation :=
1417
else
1518
override CXXFLAGS += -DNDEBUG -DCC_LOG_LEVEL=0 -O3
1619
endif
@@ -49,7 +52,7 @@ export exampleGameApp := $(binDir)/examples/game/build/app
4952
export exampleRenderApp := $(binDir)/examples/render/build/app
5053

5154
# Set build vars
52-
export compileFlags := -Wall -std=c++17
55+
export compileFlags := -Wall -std=c++17 $(optimisation)
5356
export linkFlags += -L $(libDir)
5457
buildFlagsFile:=.buildflags
5558

0 commit comments

Comments
 (0)