mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
Fix cross-compilation for Windows on Linux
This commit is contained in:
+7
-1
@@ -225,7 +225,13 @@ fn build(target_os: &str) -> io::Result<()> {
|
||||
"--arch={}",
|
||||
env::var("CARGO_CFG_TARGET_ARCH").unwrap()
|
||||
));
|
||||
configure.arg(format!("--target_os={}", target_os));
|
||||
if target_os == "windows" {
|
||||
// fix `configure: Unknown OS 'windows'`
|
||||
configure.arg(format!("--target_os={}", "mingw32"));
|
||||
} else {
|
||||
configure.arg(format!("--target_os={}", target_os));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// control debug build
|
||||
|
||||
Reference in New Issue
Block a user