- derive the xwin SDK lib arch dir from TARGET instead of hardcoding x86_64, so the Windowscodecs.lib case-symlink shim also applies to aarch64 (and any other) target

This commit is contained in:
w.pomp committed 2026-10-29 14:18:52 +01:00
1 parent d6fe6ec733
commit 4be8fc422f
1 file changed
+4 -1
+4 -1
View File
@@ -90,7 +90,10 @@ fn fix_xwin_lib_case() -> Result<(), Box<dyn std::error::Error>> {
.and_then(|p| p.parent())
.ok_or(Error::msg("cannot determine cargo-xwin base dir"))?;
let xwin_sdk_lib = cargo_xwin_base.join("xwin/sdk/lib/um/x86_64");
let arch = env::var("TARGET")
.map(|t| t.split('-').next().unwrap_or_default().to_string())
.unwrap_or_default();
let xwin_sdk_lib = cargo_xwin_base.join("xwin/sdk/lib/um").join(arch);
if !xwin_sdk_lib.exists() {
return Ok(());
}