From fc44313633a27d72fd50f68a6c9098616b43a3a6 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 6 Jan 2025 08:48:51 -0800 Subject: [PATCH] Add a comment for the workaround --- crates/wasmtime/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/wasmtime/build.rs b/crates/wasmtime/build.rs index 4d502cb5edd9..78ad92f4443b 100644 --- a/crates/wasmtime/build.rs +++ b/crates/wasmtime/build.rs @@ -36,6 +36,8 @@ fn build_c_helpers() { build.define("FEATURE_DEBUG_BUILTINS", None); } + // On MinGW targets work around a bug in the MinGW compiler described at + // https://github.com/bytecodealliance/wasmtime/pull/9688#issuecomment-2573367719 if std::env::var("CARGO_CFG_WINDOWS").is_ok() && std::env::var("CARGO_CFG_TARGET_ENV").ok().as_deref() == Some("gnu") {