From 239f42a924ac5a53654e069b02a177d6b3d5acdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 29 Apr 2014 11:03:17 +0300 Subject: [PATCH] Don't build all object files with -ZW, only the one that needs it This reduces the build time from 69 s to 30 s, reduces the size of the built wels.lib from 30 MB to 3.9 MB, and reduces the number of warnings when building wels.lib. --- build/platform-msvc-wp.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/platform-msvc-wp.mk b/build/platform-msvc-wp.mk index 2726c386..a773c45c 100644 --- a/build/platform-msvc-wp.mk +++ b/build/platform-msvc-wp.mk @@ -3,6 +3,8 @@ include build/platform-msvc-common.mk CFLAGS_OPT += -MD CFLAGS_DEBUG += -MDd CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -CXXFLAGS += -ZW +CXXFLAGS += LDFLAGS += +codec/common/src/WelsThreadLib.$(OBJ): CXXFLAGS += -ZW +