Chromium Code Reviews| Index: pylib/gyp/generator/ninja.py |
| =================================================================== |
| --- pylib/gyp/generator/ninja.py (revision 1834) |
| +++ pylib/gyp/generator/ninja.py (working copy) |
| @@ -1606,10 +1606,13 @@ |
| 'resname': resource_name, |
| 'embed': embed_manifest } |
| rule_name_suffix = _GetWinLinkRuleNameSuffix(embed_manifest) |
| + use_separate_mspdbsrv = os.environ.get('GYP_USE_SEPARATE_MSPDBSRV') != None |
|
scottmg
2014/01/10 19:47:51
maybe something like
int(os.environ.get('GYP_USE_
Sébastien Marchand
2014/01/11 00:00:39
Done.
|
| dlldesc = 'LINK%s(DLL) $binary' % rule_name_suffix.upper() |
| - dllcmd = ('%s gyp-win-tool link-wrapper $arch ' |
| + dllcmd = ('%s gyp-win-tool link-wrapper $arch %s ' |
| '$ld /nologo $implibflag /DLL /OUT:$binary ' |
| - '@$binary.rsp' % sys.executable) |
| + '@$binary.rsp' % |
| + (sys.executable, |
| + 'True' if use_separate_mspdbsrv else 'False')) |
|
Sébastien Marchand
2014/01/10 18:08:23
I'm not satisfied with those 'True' and 'False' va
scottmg
2014/01/10 19:47:51
I think %s of |use_separate_mspdbsrv| directly is
Sébastien Marchand
2014/01/11 00:00:39
Done.
|
| dllcmd = FullLinkCommand(dllcmd, '$binary', 'dll') |
| master_ninja.rule('solink' + rule_name_suffix, |
| description=dlldesc, command=dllcmd, |
| @@ -1625,9 +1628,10 @@ |
| pool='link_pool') |
| # Note that ldflags goes at the end so that it has the option of |
| # overriding default settings earlier in the command line. |
| - exe_cmd = ('%s gyp-win-tool link-wrapper $arch ' |
| + exe_cmd = ('%s gyp-win-tool link-wrapper $arch %s ' |
| '$ld /nologo /OUT:$binary @$binary.rsp' % |
| - sys.executable) |
| + (sys.executable, |
| + 'True' if use_separate_mspdbsrv else 'False')) |
| exe_cmd = FullLinkCommand(exe_cmd, '$binary', 'exe') |
| master_ninja.rule('link' + rule_name_suffix, |
| description='LINK%s $binary' % rule_name_suffix.upper(), |