More fixes

This commit is contained in:
2022-09-11 20:45:27 -04:00
parent 7bcbfd7bc0
commit d5e157545d
3 changed files with 20 additions and 11 deletions

View File

@@ -30,15 +30,16 @@ fn run_make(cwd: &Path, arg: &Path, config: &AppConfig) -> BuildStatus {
match (|| -> Result<BuildStatus> {
let make = if config.custom_make.is_empty() { "make" } else { &config.custom_make };
#[cfg(not(windows))]
{
let mut command = {
let mut command = Command::new(make);
command.current_dir(cwd).arg(arg);
command
}
};
#[cfg(windows)]
let mut command = {
use path_slash::PathExt;
use std::os::windows::process::CommandExt;
use path_slash::PathExt;
let mut command = if config.selected_wsl_distro.is_some() {
Command::new("wsl")
} else {