Skip to content
Snippets Groups Projects
Commit a4fbfd0b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Define NDEBUG for RELEASE builds

We don't want our assertions asserting.
parent ed2b5201
No related branches found
No related tags found
No related merge requests found
Pipeline #7702 passed
......@@ -524,7 +524,7 @@ ifdef DEBUG
else # RELEASE
# -finline-functions (used to) break the baja build badly.
# This also meant that -O3 wouldn't work either.
CFLAGS := -O3 -Wno-unused-result -ffast-math -funroll-loops $(CFLAGS)
CFLAGS := -O3 -Wno-unused-result -ffast-math -funroll-loops $(CFLAGS) -DNDEBUG
ifndef NO_LTO
# Not Yet... this requires more care with library ordering.
# CFLAGS += -flto
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment