File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Available unstable (nightly-only) flags:
37
37
-Z install-upgrade -- `cargo install` will upgrade instead of failing
38
38
-Z cache-messages -- Cache compiler messages
39
39
-Z timings -- Display concurrency information
40
+ -Z doctest-xcompile -- Compile and run doctests for non-host target using runner config
40
41
41
42
Run with 'cargo -Z [FLAG] [SUBCOMMAND]'"
42
43
) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,21 @@ directory. Example:
58
58
cargo +nightly build --out-dir=out -Z unstable-options
59
59
```
60
60
61
+ ### doctest-xcompile
62
+ * Tracking Issue: [ #7040 ] ( https://github.com/rust-lang/cargo/issues/7040 )
63
+ * Tracking Rustc Issue: [ #64245 ] ( https://github.com/rust-lang/rust/issues/64245 )
64
+
65
+ This flag changes ` cargo test ` 's behavior when handling doctests when
66
+ a target is passed. Currently, if a target is passed that is different
67
+ from the host cargo will simply skip testing doctests. If this flag is
68
+ present, cargo will continue as normal, passing the tests to doctest,
69
+ while also passing it a ` --target ` option, as well as enabling
70
+ ` -Zunstable-features --enable-per-target-ignores ` and passing along
71
+ information from ` .cargo/config ` . See the rustc issue for more information.
72
+
73
+ ```
74
+ cargo test --target foo -Zdoctest-xcompile
75
+ ```
61
76
62
77
### Profile Overrides
63
78
* Tracking Issue: [ rust-lang/rust #48683 ] ( https://github.com/rust-lang/rust/issues/48683 )
You can’t perform that action at this time.
0 commit comments