aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0bbc813..a33dbb8 100644
--- a/Makefile
+++ b/Makefile
@@ -147,6 +147,9 @@ realclean:
rm -rf $(GCOVS)
$(BUILD_DIR)/Makefile:
+ifneq (,$(filter -DNDEBUG,$(CFLAGS)))
+ $(error -DNDEBUG flag is not supported)
+endif
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR); $(CMAKE) \
-D "CMAKE_C_COMPILER:STRING=$(CC)" \