Skip to content
Myr

Fixes #568

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by FilipAndersson · committed by David Peter · parent af2f0ac · Browse files · 2 files+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−2 removed

  • other:+8 added−2 removed

2 files+8 added−2 removed

modified:src/benchmark/executor.rs+7 added-1 removed
128 unmodified lines
129 command_failure_action: Option<CmdFailureAction>,130 ) -> Result<(TimingResult, ExitStatus)> {131 let mut command_builder = self.shell.command();132 command_builder133 .arg(if cfg!(windows) { "/C" } else { "-c" })133 .arg(134 if cfg!(windows) && *self.shell == Shell::Default("cmd.exe") {135 "/C"136 } else {137 "-c"138 },139 )140 .arg(command.get_command_line());141142 let mut result = run_command_and_measure_common(143 command_builder,
150 unmodified lines
modified:src/options.rs+1 added-1 removed
18 unmodified lines
19#[cfg(windows)]20pub const DEFAULT_SHELL: &str = "cmd.exe";2122/// Shell to use for executing benchmarked commands23#[derive(Debug)]23#[derive(Debug, PartialEq)]24pub enum Shell {25 /// Default shell command26 Default(&'static str),27
386 unmodified lines