Browse Source

Build: use same optimization level in debug and release build

pull/35/head
heck 3 years ago
parent
commit
e6e3ba1801
  1. 2
      Makefile.conf

2
Makefile.conf

@ -63,7 +63,7 @@ endif
### Debug or Release build ### Debug or Release build
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
$(info Debug build (set DEBUG=0 for release build)) $(info Debug build (set DEBUG=0 for release build))
CXXFLAGS+=-g CXXFLAGS+=-g -O3
else else
$(info Release Build (set DEBUG=1 for debug build)) $(info Release Build (set DEBUG=1 for debug build))
CXXFLAGS+=-DNDEBUG=1 -O3 CXXFLAGS+=-DNDEBUG=1 -O3

Loading…
Cancel
Save