mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 15:57:26 +00:00

## Summary 1. Given the upcoming 1.89 update, this bumps uv-trampoline to "~1.87" (closest nightly) from "~1.86" (closest nightly). 2. Adds additional CI check for arm builds now that runners are available. I wasn't sure the MSRV policy applies to uv-trampoline, so I didn't go for higher than ~1.87 nightly. This PR also fixes a build issue starting after 1.87 where fma and fmaf symbols were missing. Temporarily dded `#[allow(clippy::ptr_eq)]` to `close_handles` as this lint should not trigger anymore in 1.88 and above. ## Test Plan Existing tests and local build process. I did not commit the built binaries for security purposes. --------- Co-authored-by: konstin <konstin@mailbox.org>
15 lines
735 B
Rust
15 lines
735 B
Rust
// This embeds a "manifest" - a special XML document - into our built binary.
|
|
// The main things it does is tell Windows that we want to use the magic
|
|
// utf8 codepage, so we can use the *A versions of Windows API functions and
|
|
// don't have to mess with utf-16.
|
|
use embed_manifest::{embed_manifest, new_manifest};
|
|
|
|
fn main() {
|
|
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
|
|
let manifest =
|
|
new_manifest("uv.Trampoline").remove_dependency("Microsoft.Windows.Common-Controls");
|
|
embed_manifest(manifest).expect("unable to embed manifest");
|
|
println!("cargo::rustc-link-lib=ucrt"); // https://github.com/rust-lang/rust/issues/143172
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|
|
}
|