Skip to content

Commit

Permalink
Add a GYP_DEFINE to force generating /Z7 flags for Visual C++.
Browse files Browse the repository at this point in the history
This is required for parallel compilation tools that are unable to
support /Zi.

BUG=none
TEST=manual


Review URL: https://chromiumcodereview.appspot.com/10416043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138549 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
arthurhsu@chromium.org committed May 23, 2012
1 parent fd5a1a6 commit 9619e65
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1461,6 +1466,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': [
Expand Down

0 comments on commit 9619e65

Please sign in to comment.