[build/simulator] NDEBUG flag in release mode

This way, asserts are not performed on simulator platforms
This commit is contained in:
Léa Saviot
2020-04-08 10:06:59 +02:00
committed by EmilieNumworks
parent 4a9bfca1f6
commit 2ed354710f
14 changed files with 24 additions and 29 deletions

View File

@@ -2,7 +2,6 @@ HOSTCC = gcc
HOSTCXX = g++
PYTHON = python3
SFLAGS = -DDEBUG=$(DEBUG)
SFLAGS += -DEPSILON_GETOPT=$(EPSILON_GETOPT)
SFLAGS += -DEPSILON_TELEMETRY=$(EPSILON_TELEMETRY)
SFLAGS += -DESCHER_LOG_EVENTS_BINARY=$(ESCHER_LOG_EVENTS_BINARY)
@@ -16,6 +15,7 @@ ifeq ($(DEBUG),1)
SFLAGS += -O0 -g
else
SFLAGS += -Os
SFLAGS += -DNDEBUG
endif
ifeq ($(ASAN),1)

View File

@@ -1,9 +1,4 @@
TOOLCHAIN ?= host-gcc
USE_LIBA ?= 0
ION_KEYBOARD_LAYOUT = layout_B2
EXE = bin
ifeq ($(DEBUG),1)
else
SFLAGS += -DNDEBUG
endif
EXE = bin

View File

@@ -17,4 +17,4 @@ SFLAGS += -DEPSILON_SIMULATOR_HAS_LIBPNG=$(EPSILON_SIMULATOR_HAS_LIBPNG)
ifeq ($(EPSILON_SIMULATOR_HAS_LIBPNG),1)
SFLAGS += `libpng-config --cflags`
LDFLAGS += `libpng-config --ldflags`
endif
endif