From 9724fb4a4e58a055bbfbb105bd471f120be72dc8 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Wed, 15 Jul 2026 01:02:19 +0200 Subject: [PATCH] fix(pyrowave-sys): link user32 on Windows (Granite breadcrumbs MessageBoxA) MSVC leg of the Phase-0 build gate verified on the windows-amd64 runner (.133): full vendored C++ set compiles under MSVC, static link resolves, API-version pin test green. Co-Authored-By: Claude Fable 5 --- crates/pyrowave-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/pyrowave-sys/build.rs b/crates/pyrowave-sys/build.rs index c2454b20..83b35fb9 100644 --- a/crates/pyrowave-sys/build.rs +++ b/crates/pyrowave-sys/build.rs @@ -84,6 +84,10 @@ fn main() { println!("cargo:rustc-link-lib=dylib=dl"); println!("cargo:rustc-link-lib=dylib=pthread"); } + if target_os == "windows" { + // Granite's breadcrumbs tracker raises a MessageBoxA on device hang. + println!("cargo:rustc-link-lib=dylib=user32"); + } let bindings = bindgen::Builder::default() .header("wrapper.h")