mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[build/simulator] NDEBUG flag in release mode
This way, asserts are not performed on simulator platforms
This commit is contained in:
committed by
EmilieNumworks
parent
4a9bfca1f6
commit
2ed354710f
@@ -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)
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user