Fix on NixOS (#4776)

This commit is contained in:
Moritz Hedtke authored and GitHub committed 2025-10-13 12:43:50 -07:00
1 parent 76319005b8
commit cf893dc94a
1 file changed
+2 -8
+2 -8
View File
@@ -1720,10 +1720,7 @@ impl BuildRequest {
// On linux, we need to set a more complete PATH for the linker to find its libraries // On linux, we need to set a more complete PATH for the linker to find its libraries
if cfg!(target_os = "linux") { if cfg!(target_os = "linux") {
command_envs.push(( command_envs.push(("PATH".to_string(), std::env::var("PATH").unwrap()));
"PATH".to_string(),
"/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin".to_string(),
));
} }
// Run the linker directly! // Run the linker directly!
@@ -2251,10 +2248,7 @@ impl BuildRequest {
// On linux, we need to set a more complete PATH for the linker to find its libraries // On linux, we need to set a more complete PATH for the linker to find its libraries
if cfg!(target_os = "linux") { if cfg!(target_os = "linux") {
command_envs.push(( command_envs.push(("PATH".to_string(), std::env::var("PATH").unwrap()));
"PATH".to_string(),
"/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin".to_string(),
));
} }
// Run the linker directly! // Run the linker directly!