diff options
author | Ivan Efremov <i350300800e@gmail.com> | 2021-06-10 16:13:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 14:13:22 +0100 |
commit | 8b6db2e0b3b340dd747c735e48a4691619e063ce (patch) | |
tree | 52a62ffc740cc3997202e998b0f0cf22bdca588d /Makefile | |
parent | c34d6ec02bae297b9256ac45ff71da0e2d4b4bc1 (diff) | |
download | libvfio-user-8b6db2e0b3b340dd747c735e48a4691619e063ce.zip libvfio-user-8b6db2e0b3b340dd747c735e48a4691619e063ce.tar.gz libvfio-user-8b6db2e0b3b340dd747c735e48a4691619e063ce.tar.bz2 |
Fix make CFLAGS="-DNDEBUG" failure (#563)
Do sanity check of -DNDEBUG before compiling to prevent disabling assertions
Signed-off-by: Ivan Efremov <i350300800e@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)" \ |