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:
1 parent
cb117826c7
commit
e1c04c4f5b
2 files changed
+20
-2
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user