From 899b11c4a1481df9b860f800838e1b18bd642024 Mon Sep 17 00:00:00 2001 From: "alexeypa@chromium.org" Date: Wed, 21 Mar 2012 22:59:32 +0000 Subject: [PATCH] ATL 8.0 included in WDK 7.1 makes the linker to generate almost eight hundred LNK4254 and LNK4078 warnings. This CL disables both warnings when compiling using "Express" versions of Visual Studio. Review URL: http://codereview.chromium.org/9718030 git-svn-id: http://src.chromium.org/svn/trunk/src/build@128082 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common.gypi b/common.gypi index 428c1c03e..ae3b6bb48 100644 --- a/common.gypi +++ b/common.gypi @@ -2773,12 +2773,21 @@ 'winmm.lib', 'shlwapi.lib', ], + 'conditions': [ ['msvs_express', { # Explicitly required when using the ATL with express 'AdditionalDependencies': [ 'atlthunk.lib', ], + + # ATL 8.0 included in WDK 7.1 makes the linker to generate + # almost eight hundred LNK4254 and LNK4078 warnings: + # - warning LNK4254: section 'ATL' (50000040) merged into + # '.rdata' (40000040) with different attributes + # - warning LNK4078: multiple 'ATL' sections found with + # different attributes + 'AdditionalOptions': ['/ignore:4254', '/ignore:4078'], }], ['MSVS_VERSION=="2005e"', { # Non-express versions link automatically to these