diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-03-10 17:25:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-03-10 17:25:37 +0200 |
commit | 3be026e9402e213719a58a3b0b26a211e89bd46c (patch) | |
tree | a5a87ed80c77ffa91977d9910062e5d59a7e5b33 | |
parent | 776224c34ed894e63e3bcf7806c58090d2b72f4f (diff) |
Pass -DNDEBUG when compiling for release
-rw-r--r-- | make.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 \ |