From 4f2b34fc6de104b91bef324c2569302a12bc18f4 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 20 Jun 2018 15:31:08 +0300 Subject: [PATCH] Turn on GC assertions in NT_MAKEFILE for debug builds * NT_MAKEFILE [!NODEBUG] (CFLAGS_DEBUG): Define variable (set to -D GC_ASSERTIONS). * NT_MAKEFILE (CFLAGS_SPECIFIC): Add $(CFLAGS_DEBUG). --- NT_MAKEFILE | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NT_MAKEFILE b/NT_MAKEFILE index d6bdf3c7..479e64f3 100644 --- a/NT_MAKEFILE +++ b/NT_MAKEFILE @@ -48,6 +48,10 @@ CVTRES_CPU=X86 CVTRES_CPU=X64 !ENDIF +!IFNDEF NODEBUG +CFLAGS_DEBUG=-DGC_ASSERTIONS +!ENDIF + !IFNDEF NOTHREADS CFLAGS_MT=$(cvarsmt) -DGC_THREADS -DTHREAD_LOCAL_ALLOC -DPARALLEL_MARK !ENDIF @@ -70,7 +74,7 @@ LINK_DLL_FLAGS=kernel32.lib user32.lib /subsystem:windows /dll \ LINK_GC=$(link) $(ldebug) $(LINK_DLL_FLAGS) !ENDIF -CFLAGS_SPECIFIC=$(CFLAGS_GCDLL) $(CFLAGS_MT) +CFLAGS_SPECIFIC=$(CFLAGS_DEBUG) $(CFLAGS_GCDLL) $(CFLAGS_MT) # Make sure that .cc is not viewed as a suffix. It is for VC++2005, but # not earlier versions. We can deal with either, but not inconsistency. -- 2.40.0