Skip to content

Instantly share code, notes, and snippets.

@cotsog
Created November 14, 2009 16:42
Show Gist options
  • Save cotsog/234620 to your computer and use it in GitHub Desktop.
Save cotsog/234620 to your computer and use it in GitHub Desktop.
Apply this patch to the Google Chrome source tree so you can compile it with Visual C++ 2008 Express Edition without errors. See http://bit.ly/30slOj for more details.
Index: chrome/chrome.gyp
===================================================================
--- chrome/chrome.gyp (revision 32052)
+++ chrome/chrome.gyp (working copy)
@@ -2781,6 +2781,11 @@
'browser/views/tabs/tab_overview_types.cc',
'browser/views/tabs/tab_overview_types.h',
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
}, { # 'OS!="win"
'sources/': [
# Exclude all of hang_monitor.
@@ -3901,6 +3906,9 @@
'<(SHARED_INTERMEDIATE_DIR)/chrome',
],
'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
'VCLinkerTool': {
'DelayLoadDLLs': [
'dbghelp.dll',
@@ -4978,6 +4986,11 @@
},
},
},
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
}, { # else: OS != "win"
'sources!': [
'browser/bookmarks/bookmark_codec_unittest.cc',
@@ -5444,6 +5457,15 @@
'-lsecur32.lib',
],
},
+ 'configurations': {
+ 'Debug': {
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
+ },
+ },
+ },
+ },
}, { # else: OS != "win"
'sources!': [
'browser/sync/util/data_encryption_unittest.cc',
@@ -6808,6 +6830,11 @@
'dependencies': [
'../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
},],
],
},
@@ -6940,6 +6967,11 @@
'dependencies': [
'../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
},],
],
},
Index: views/views.gyp
===================================================================
--- views/views.gyp (revision 32052)
+++ views/views.gyp (working copy)
@@ -340,6 +340,11 @@
# TODO(beng): move wtl to src/third_party
'../chrome/third_party/wtl/include',
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
}],
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment