We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee44af commit cef0acfCopy full SHA for cef0acf
build.rs
@@ -200,7 +200,11 @@ fn build(target_os: &str) -> io::Result<()> {
200
201
configure.arg(format!("--prefix={}", search().to_string_lossy()));
202
203
- if env::var("TARGET").unwrap() != env::var("HOST").unwrap() {
+ let target = env::var("TARGET").unwrap();
204
+ let host = env::var("HOST").unwrap();
205
+ if target != host {
206
+ configure.arg("--enable-cross-compile");
207
+
208
// Rust targets are subtly different than naming scheme for compiler prefixes.
209
// The cc crate has the messy logic of guessing a working prefix,
210
// and this is a messy way of reusing that logic.
0 commit comments