Remove debug symbols from release build

This commit is contained in:
Bob Polis 2023-09-03 12:05:44 +02:00
parent 9ed5a63759
commit a0629551f7

View File

@ -21,9 +21,9 @@ CXX ?= g++
RM := /bin/rm -rf RM := /bin/rm -rf
INSTALL := /usr/bin/install -c INSTALL := /usr/bin/install -c
CXXFLAGS += -Wshadow -Wall -Wpedantic -Wextra -g -std=c++17 CXXFLAGS += -Wshadow -Wall -Wpedantic -Wextra -std=c++17
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
CXXFLAGS += -D DEBUG -O0 CXXFLAGS += -g3 -D DEBUG -O0
CONFIG := debug CONFIG := debug
else else
CXXFLAGS += -D NDEBUG -O3 CXXFLAGS += -D NDEBUG -O3