aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-10 17:25:37 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-03-10 17:25:37 +0200
commit3be026e9402e213719a58a3b0b26a211e89bd46c (patch)
treea5a87ed80c77ffa91977d9910062e5d59a7e5b33 /make.c
parent776224c34ed894e63e3bcf7806c58090d2b72f4f (diff)
Pass -DNDEBUG when compiling for release
Diffstat (limited to 'make.c')
-rw-r--r--make.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/make.c b/make.c
index 3be57c2..6444094 100644
--- a/make.c
+++ b/make.c
@@ -12,10 +12,10 @@
#define CFLAGS_ALL WARNINGS, "-pipe", "-std=c23", "-Iinclude"
#define CFLAGS_DBG CFLAGS_ALL, "-g", "-ggdb3", "-Og"
#ifdef __APPLE__
-# define CFLAGS_RLS CFLAGS_ALL, "-O3", "-flto"
+# define CFLAGS_RLS CFLAGS_ALL, "-O3", "-flto", "-DNDEBUG"
#else
# define CFLAGS_RLS \
- CFLAGS_ALL, "-O3", "-flto", "-march=native", "-mtune=native"
+ CFLAGS_ALL, "-O3", "-flto", "-DNDEBUG", "-march=native", "-mtune=native"
#endif
#define LIBNAME "libmlib"
#define WARNINGS \