diff --git a/xtask/src/tbuld.rs b/xtask/src/tbuld.rs index 539913f8..bcb9a555 100644 --- a/xtask/src/tbuld.rs +++ b/xtask/src/tbuld.rs @@ -78,11 +78,10 @@ impl Context { } if !vm_config_paths.is_empty() { - let value = vm_config_paths - .iter() - .map(|p| format!("{}", p.display())) - .collect::>() - .join(";"); + let value = std::env::join_paths(&vm_config_paths) + .map_err(|e| anyhow::anyhow!("Failed to join VM config paths: {}", e))? + .to_string_lossy() + .into_owned(); cargo.env.insert("AXVISOR_VM_CONFIGS".to_string(), value); }