Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: build/common.gypi

Issue 10416043: Add a GYP_DEFINE to force generating /Z7 flags for Visual C++. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update per code review Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 73a7202fa733b342b8f503851beae13aaace5bfb..965a437ba2f59416548907adb0e1e1a6d4d0fe30 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -631,6 +631,11 @@
# Currently ignored on Windows.
'coverage%': 0,
+ # Set to 1 to force Visual C++ to use legacy debug information format /Z7.
+ # This is useful for parallel compilation tools which can't support /Zi.
+ # Only used on Windows.
+ 'win_z7%' : 0,
+
# Although base/allocator lets you select a heap library via an
# environment variable, the libcmt shim it uses sometimes gets in
# the way. To disable it entirely, and switch to normal msvcrt, do e.g.
@@ -1458,6 +1463,15 @@
'include_dirs': [
'<(DEPTH)/third_party/wtl/include',
],
+ 'conditions': [
+ ['win_z7!=0', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'DebugInformationFormat': '1',
+ }
+ }
+ }],
+ ], # win_z7!=0
}], # OS==win
['enable_task_manager==1', {
'defines': [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698