Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions packages/cli/src/build/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1720,10 +1720,7 @@ impl BuildRequest {

// On linux, we need to set a more complete PATH for the linker to find its libraries
if cfg!(target_os = "linux") {
command_envs.push((
"PATH".to_string(),
"/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin".to_string(),
));
command_envs.push(("PATH".to_string(), std::env::var("PATH").unwrap()));
}

// Run the linker directly!
Expand Down Expand Up @@ -2251,10 +2248,7 @@ impl BuildRequest {

// On linux, we need to set a more complete PATH for the linker to find its libraries
if cfg!(target_os = "linux") {
command_envs.push((
"PATH".to_string(),
"/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin".to_string(),
));
command_envs.push(("PATH".to_string(), std::env::var("PATH").unwrap()));
}

// Run the linker directly!
Expand Down