Skip to content

Commit 7d2dabd

Browse files
committed
Cross env var passthrough: RUSTDOCFLAGS and RUST_BACKTRACE
I don't know if "RUSTDOCFLAGS" will be passed automatically, but from their doc [1]: > In the instances that you do want to pass through additional environment > variables, this can be done via build.env.passthrough in your Cross.toml: > > ```toml > [build.env] > passthrough = [ > "RUST_BACKTRACE" > ] > ``` We do need to specify "RUST_BACKTRACE" here. Anyway, let's pass both in case Cross won't do this for us. [1]: https://github.com/cross-rs/cross/blob/49cd054de9b832dfc11a4895c72b0aef533b5c6a/docs/environment_variables.md#environment-variable-passthrough
1 parent ab5c4ef commit 7d2dabd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Cross.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[build.env]
22
passthrough = [
33
"RUSTFLAGS",
4+
"RUSTDOCFLAGS"
45
"RUST_TEST_THREADS"
6+
"RUST_BACKTRACE"
57
]
68

79
[target.loongarch64-unknown-linux-gnu]

0 commit comments

Comments
 (0)