aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/launcher/launcher.cc
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2018-04-12 01:42:31 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-12 01:43:44 -0700
commite02a00f38a5bff9f567d6490f2668805c4b6f170 (patch)
tree599c7ab9f8f9a6a8fe64701bbca985b26718def5 /src/tools/launcher/launcher.cc
parent0c9f2d4c15b761e3f3b863658b6d5c65bde6db22 (diff)
Windows: java launcher no longer calls cmd.exe
See https://github.com/bazelbuild/bazel/issues/2190 Closes #5005. Change-Id: If665af264a23be0219c75ae087dd25db74d5e386 PiperOrigin-RevId: 192575414
Diffstat (limited to 'src/tools/launcher/launcher.cc')
-rw-r--r--src/tools/launcher/launcher.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/launcher/launcher.cc b/src/tools/launcher/launcher.cc
index a657fa41e7..d26506e1b1 100644
--- a/src/tools/launcher/launcher.cc
+++ b/src/tools/launcher/launcher.cc
@@ -176,8 +176,9 @@ bool BinaryLauncherBase::PrintLauncherCommandLine(
return has_print_cmd_flag;
}
-ExitCode BinaryLauncherBase::LaunchProcess(
- const string& executable, const vector<string>& arguments) const {
+ExitCode BinaryLauncherBase::LaunchProcess(const string& executable,
+ const vector<string>& arguments,
+ bool suppressOutput) const {
if (PrintLauncherCommandLine(executable, arguments)) {
return 0;
}
@@ -194,7 +195,9 @@ ExitCode BinaryLauncherBase::LaunchProcess(
/* lpProcessAttributes */ NULL,
/* lpThreadAttributes */ NULL,
/* bInheritHandles */ FALSE,
- /* dwCreationFlags */ 0,
+ /* dwCreationFlags */
+ suppressOutput ? CREATE_NO_WINDOW // no console window => no output
+ : 0,
/* lpEnvironment */ NULL,
/* lpCurrentDirectory */ NULL,
/* lpStartupInfo */ &startupInfo,