summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2012-06-19 20:15:41 (GMT)
committerScott Graham <scottmg@chromium.org>2012-06-19 20:15:41 (GMT)
commit9ef56fd56f414bc6aa231b8d65cfa4ddec4cdedb (patch)
treed7c8a502cfd62150aad0fd3848b8995f9b8ace79 /configure.py
parentb3d63db1facc7ee9d14e211cc738f34b702de833 (diff)
downloadNinja-9ef56fd56f414bc6aa231b8d65cfa4ddec4cdedb.zip
Ninja-9ef56fd56f414bc6aa231b8d65cfa4ddec4cdedb.tar.gz
Ninja-9ef56fd56f414bc6aa231b8d65cfa4ddec4cdedb.tar.bz2
fix win32 compile, fix BuildLogTest.WriteRead on 2nd run
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 5329708..feb8a98 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