Skip to content

Commit

Permalink
env::buildenv: Add /bin:/sbin to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkofler committed Dec 14, 2023
1 parent 49373e5 commit e58970f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/env/buildenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ impl Environment for BuildEnvironment {
.arg(executable.get_command());

let tc_dir = self.toolchain_dir.to_string_lossy();
let path = format!("{}/bin:{}/sbin", tc_dir, tc_dir);
let path = format!(
"/bin:/sbin:/usr/bin:/usr/sbin:{}/bin:{}/sbin",
tc_dir, tc_dir
);

command
.env("PATH", path)
Expand Down

0 comments on commit e58970f

Please sign in to comment.