Skip to content

Commit c6f2815

Browse files
committed
Auto merge of #9121 - vext01:extra-link-arg-doc, r=alexcrichton
Document -Z extra-link-arg. Whilst reading the cargo source code, I encountered `-Z extra-link-arg`. I'd missed this flag before because it is not documented in `-Z help`. This commit adds the one-liner documentation. ([This argument **is** mentioned in the unstable cargo book](https://doc.rust-lang.org/beta/cargo/reference/unstable.html#extra-link-arg))
2 parents 4e4490f + 0b515f3 commit c6f2815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/cargo/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub fn main(config: &mut Config) -> CliResult {
3636
Available unstable (nightly-only) flags:
3737
3838
-Z avoid-dev-deps -- Avoid installing dev-dependencies if possible
39+
-Z extra-link-arg -- Allow `cargo:rustc-link-arg` in build scripts
3940
-Z minimal-versions -- Install minimal dependency versions instead of maximum
4041
-Z no-index-update -- Do not update the registry, avoids a network request for benchmarking
4142
-Z unstable-options -- Allow the usage of unstable options

0 commit comments

Comments
 (0)