We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f920bc commit 60365f4Copy full SHA for 60365f4
build.rs
@@ -229,7 +229,13 @@ fn build(target_os: &str) -> io::Result<()> {
229
"--arch={}",
230
env::var("CARGO_CFG_TARGET_ARCH").unwrap()
231
));
232
- configure.arg(format!("--target_os={}", target_os));
+ if target_os == "windows" {
233
+ // fix `configure: Unknown OS 'windows'`
234
+ configure.arg(format!("--target_os={}", "mingw32"));
235
+ } else {
236
+ configure.arg(format!("--target_os={}", target_os));
237
+ }
238
+
239
}
240
241
// control debug build
0 commit comments