diff options
author | Evan Martin <martine@danga.com> | 2012-07-17 20:20:12 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-07-17 20:20:12 (GMT) |
commit | 039b662d52b10f3a45accc40e3c269676c664f7c (patch) | |
tree | 301c3c0d944a1341c6bdf7f23d5cf284303ea60e /configure.py | |
parent | 5d8d27c3f078ec00efa97e9bbf0418825e8ff57f (diff) | |
parent | 98d1b7b718de76831ddf4da283e6c0510266322b (diff) | |
download | Ninja-039b662d52b10f3a45accc40e3c269676c664f7c.zip Ninja-039b662d52b10f3a45accc40e3c269676c664f7c.tar.gz Ninja-039b662d52b10f3a45accc40e3c269676c664f7c.tar.bz2 |
Merge pull request #340 from sgraham/fix-win-build
fix win32 compile, fix BuildLogTest.WriteRead on 2nd run
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 6fb718f..22aa36a 100755 --- a/configure.py +++ b/configure.py @@ -150,8 +150,8 @@ else: def shell_escape(str): """Escape str such that it's interpreted as a single argument by the shell.""" # This isn't complete, but it's just enough to make NINJA_PYTHON work. - # TODO: do the appropriate thing for Windows-style cmd here, perhaps by - # just returning the input string. + if platform == 'windows': + return str if '"' in str: return "'%s'" % str.replace("'", "\\'") return str |