Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
win,gyp: quote action command
Browse files Browse the repository at this point in the history
gyp MSVS generator did not quote action commands. This generates invalid
commands if action commands contain spaces.

Fix #1
Reviewed-by: orangemocha
  • Loading branch information
Jianchun Xu committed Jun 29, 2015
1 parent f345fb0 commit 9d2faef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tools/gyp/pylib/gyp/generator/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ def _BuildCommandLineForRuleRaw(spec, cmd, cygwin_shell, has_input_path,
command = ['type']
else:
command = [cmd[0].replace('/', '\\')]
if quote_cmd:
command = ['"%s"' % i for i in command]
# Add call before command to ensure that commands can be tied together one
# after the other without aborting in Incredibuild, since IB makes a bat
# file out of the raw command string, and some commands (like python) are
Expand Down

0 comments on commit 9d2faef

Please sign in to comment.