make: fix debug/release builds
author |
David Demelier <markand@malikania.fr> |
date |
Sun, 20 Jun 2021 12:38:05 +0200 |
parents |
8904cd227948 |
children |
c1c9a2cd63cb |
files |
GNUmakefile lib/irccd/log.c |
diffstat |
2 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/GNUmakefile Sun Jun 20 12:33:25 2021 +0200
+++ b/GNUmakefile Sun Jun 20 12:38:05 2021 +0200
@@ -152,7 +152,7 @@
ifeq (${DEBUG},1)
CFLAGS+= -O0 -g
else
-CFLAGS+= -O0 -g
+CFLAGS+= -DNDEBUG -O3
endif
# Include directories.
--- a/lib/irccd/log.c Sun Jun 20 12:33:25 2021 +0200
+++ b/lib/irccd/log.c Sun Jun 20 12:38:05 2021 +0200
@@ -196,7 +196,7 @@
void
irc_log_debug(const char *fmt, ...)
{
-#if !defined(NDBEUG)
+#if !defined(NDEBUG)
assert(fmt);
va_list ap;