shithub: openh264

Download patch

ref: 36cda3606e5fea5a758c824ac5ebed0c8e97ed56
parent: c27c02bc0abc5cf0d975d715c848db1c189cea1e
author: Martin Storsjö <[email protected]>
date: Tue Apr 29 07:40:32 EDT 2014

Only use the -Gm option in desktop debug MSVC builds

This option conflicts with -ZW which is used in Windows Phone builds.

--- a/build/platform-msvc-common.mk
+++ b/build/platform-msvc-common.mk
@@ -23,7 +23,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 -RTC1 -D_DEBUG
+CFLAGS_DEBUG=-Od -Oy- -ZI -RTC1 -D_DEBUG
 CFLAGS_M32=
 CFLAGS_M64=
 LINK_LIB=$(1).lib
--- a/build/platform-msvc.mk
+++ b/build/platform-msvc.mk
@@ -1,5 +1,5 @@
 include build/platform-msvc-common.mk
 LDFLAGS += user32.lib
 CFLAGS_OPT += -MT
-CFLAGS_DEBUG += -MTd
+CFLAGS_DEBUG += -MTd -Gm