fix(build): clean up cross-platform warnings

Scope diagnostics mutability to macOS, pass the Rust LLVM library path to spawned tools, and suppress missing MSVC PDB warnings for cargo-xwin links.
This commit is contained in:
HorizonCode committed 2026-11-12 11:32:36 +01:00
1 parent cb117826c7
commit e1c04c4f5b
2 files changed
+20 -2

No files matched your search

+2
View File
@@ -397,6 +397,8 @@ pub async fn installation_diagnostics(app: AppHandle, folder: String) -> Install
.map(patcher_file_stats)
.unwrap_or_default();
// macOS fills in the Wine and FFmpeg fields below.
#[cfg_attr(not(target_os = "macos"), allow(unused_mut))]
let mut diagnostics = InstallationDiagnostics {
platform: std::env::consts::OS.to_string(),
os_version: System::long_os_version(),