aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/launcher/launcher.cc
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-12-11 06:27:47 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-11 06:29:18 -0800
commit373dcf941d979c1bb2d3c4f95d0c02616d488721 (patch)
treec5c225c5911a938b783b0d6b958d84e159dc0033 /src/tools/launcher/launcher.cc
parent30f6d44ff99cc60446e6ae1f7d4c9818351b918d (diff)
Windows Launcher: Fix argument passing
Make sure the actual binary recieves exactly the same argument passed to Windows exe launcher. Fixed https://github.com/bazelbuild/bazel/issues/4001 Change-Id: I5db2d7c2f78de8865abc04a2d5b65d69685d43db PiperOrigin-RevId: 178610493
Diffstat (limited to 'src/tools/launcher/launcher.cc')
-rw-r--r--src/tools/launcher/launcher.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/launcher/launcher.cc b/src/tools/launcher/launcher.cc
index 6d91c85ffd..11bf86b57a 100644
--- a/src/tools/launcher/launcher.cc
+++ b/src/tools/launcher/launcher.cc
@@ -125,9 +125,8 @@ void BinaryLauncherBase::CreateCommandLine(
const vector<string>& arguments) const {
ostringstream cmdline;
cmdline << '\"' << executable << '\"';
- bool first = true;
for (const auto& s : arguments) {
- cmdline << ' ' << GetEscapedArgument(s);
+ cmdline << ' ' << s;
}
string cmdline_str = cmdline.str();