ref: 70547036dd08627fe5e0e0fc6d6b094fa16e8d1b
parent: b86da1b9d1d34788d5f6e297d250bb7681253799
parent: b1f35347eba91d93894be5c2b424fbf82c9c0c9c
author: Licai Guo <[email protected]>
date: Fri Apr 11 11:41:32 EDT 2014
Merge pull request #668 from mstorsjo/msvc-crt-debug-type Set -MTd/-MDd in the same way as -MT/-MD
--- a/build/platform-msvc-arm.mk
+++ b/build/platform-msvc-arm.mk
@@ -1,5 +1,6 @@
include build/platform-msvc-common.mk
CFLAGS_OPT += -MD
+CFLAGS_DEBUG += -MDd
ARCH=arm
include build/platform-arch.mk
CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -MD -DWIN32
--- a/build/platform-msvc-common.mk
+++ b/build/platform-msvc-common.mk
@@ -6,7 +6,7 @@
CXX_LINK_O=-nologo -Fe$@
AR_OPTS=-nologo -out:$@
CFLAGS_OPT=-O2 -Ob1 -Oy- -Zi -GF -Gm- -GS -Gy -DNDEBUG
-CFLAGS_DEBUG=-Od -Oy- -ZI -Gm -MDd -RTC1 -D_DEBUG
+CFLAGS_DEBUG=-Od -Oy- -ZI -Gm -RTC1 -D_DEBUG
CFLAGS_M32=
CFLAGS_M64=
LINK_LIB=$(1).lib
--- a/build/platform-msvc.mk
+++ b/build/platform-msvc.mk
@@ -2,6 +2,7 @@
include build/platform-msvc-common.mk
LDFLAGS += user32.lib
CFLAGS_OPT += -MT
+CFLAGS_DEBUG += -MTd
ifeq ($(ENABLE64BIT), Yes)
ASMFLAGS += -f win64
ASMFLAGS_PLATFORM = -DWIN64