ninja windows: VS2013 improvements

- Use vs2013 x64->x86 cross compiler if available
- Add /FS compiler flag which maintains previous version PDB behavior.

R=thakis@chromium.org
BUG=chromium:288948

Review URL: https://codereview.chromium.org/23447022

git-svn-id: http://gyp.googlecode.com/svn/trunk@1725 78cadc50-ecff-11dd-a971-7dbc132099af
ninja/mac: Try to fix 'IOError: [Errno 2] No such file or directory' error.

Happening on this Blink bot:
http://chromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Mac%20Builder%20%28dbg%29

This probably broke when we changed the generator to write ninja files after
their contents are known -- because of that the folder doesn't exist yet
when the per-arch files are written.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/23533053

git-svn-id: http://gyp.googlecode.com/svn/trunk@1726 78cadc50-ecff-11dd-a971-7dbc132099af
Add an environment variable to specify the hard cap on the number of concurrent linkers in gyp/ninja/windows.

The core count was a poor abstraction of this. Since we can't easily+accurately model the bottleneck, expose the cap as an environment variable so we can tweak it on the bots as necessary.

The default hard cap is 2**32. I'm assuming that we'll never need that many concurrent links.

R=thakis@chromium.org

Review URL: https://codereview.chromium.org/23995007

git-svn-id: http://gyp.googlecode.com/svn/trunk@1727 78cadc50-ecff-11dd-a971-7dbc132099af
The old _escaped regex matched any characters not in range from space to
tilde, i.e. from \x20 to \x7e. Therefore it matched all non-ASCII characters,
despite this comment in _EncodeString: "Characters above the ASCII range are
passed through to the output encoded as UTF-8 without any escaping."

This changes the regex to match the same set of ASCII control characters as
before, without matching characters outside the ASCII range.

Patch by Kenneth Bongort <kbongort@google.com>
Review URL: https://codereview.chromium.org/23892016/


git-svn-id: http://gyp.googlecode.com/svn/trunk@1728 78cadc50-ecff-11dd-a971-7dbc132099af