We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 067b5ac commit 3ec118dCopy full SHA for 3ec118d
CHANGES.md
@@ -1,3 +1,6 @@
1
+* 0.81.2
2
+ * Fix building when crosscompiling with target-specific RUSTFLAGS
3
+
4
* 0.81.1
5
* Fix building on macOS (fixes https://github.com/twistedfall/opencv-rust/issues/460)
6
build.rs
@@ -290,7 +290,8 @@ fn build_clang_generator() -> io::Result<Child> {
290
"--bin",
291
"binding-generator",
292
])
293
- .env("CARGO_TARGET_DIR", &*OUT_DIR);
+ .env("CARGO_TARGET_DIR", &*OUT_DIR)
294
+ .env_remove("CARGO_ENCODED_RUSTFLAGS"); // RUSTFLAGS are meant to affect final build artifacts only
295
if let Some(host_triple) = HOST_TRIPLE.as_ref() {
296
cargo.args(["--target", host_triple]);
297
}
0 commit comments