From 3be026e9402e213719a58a3b0b26a211e89bd46c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 10 Mar 2024 17:25:37 +0200 Subject: Pass -DNDEBUG when compiling for release --- make.c | 4 ++-- 1 file 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 \ -- cgit v1.2.3