summaryrefslogtreecommitdiff
path: root/coreconf/WIN32.mk
diff options
context:
space:
mode:
Diffstat (limited to 'coreconf/WIN32.mk')
-rw-r--r--coreconf/WIN32.mk29
1 files changed, 19 insertions, 10 deletions
diff --git a/coreconf/WIN32.mk b/coreconf/WIN32.mk
index 71f2bdaa5..570d409e8 100644
--- a/coreconf/WIN32.mk
+++ b/coreconf/WIN32.mk
@@ -129,8 +129,26 @@ else # !NS_USE_GCC
ifdef USE_DYNAMICBASE
OS_DLLFLAGS += -DYNAMICBASE
endif
+ #
+ # Define USE_DEBUG_RTL if you want to use the debug runtime library
+ # (RTL) in the debug build.
+ # Define USE_STATIC_RTL if you want to use the static RTL.
+ #
+ ifdef USE_DEBUG_RTL
+ ifdef USE_STATIC_RTL
+ OS_CFLAGS += -MTd
+ else
+ OS_CFLAGS += -MDd
+ endif
+ OS_CFLAGS += -D_CRTDBG_MAP_ALLOC
+ else
+ ifdef USE_STATIC_RTL
+ OS_CFLAGS += -MT
+ else
+ OS_CFLAGS += -MD
+ endif
+ endif
ifdef BUILD_OPT
- OS_CFLAGS += -MD
ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
OPTIMIZER += -O1
else
@@ -148,15 +166,6 @@ else # !NS_USE_GCC
LDFLAGS += -DEBUG -OPT:REF
endif
else
- #
- # Define USE_DEBUG_RTL if you want to use the debug runtime library
- # (RTL) in the debug build
- #
- ifdef USE_DEBUG_RTL
- OS_CFLAGS += -MDd -D_CRTDBG_MAP_ALLOC
- else
- OS_CFLAGS += -MD
- endif
OPTIMIZER += -Zi -Fd$(OBJDIR)/ -Od
NULLSTRING :=
SPACE := $(NULLSTRING) # end of the line