]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #10274 - aviramha:extra-link-args, r=ehuss
authorbors <bors@rust-lang.org>
Sun, 30 Jan 2022 16:29:27 +0000 (16:29 +0000)
committerbors <bors@rust-lang.org>
Sun, 30 Jan 2022 16:29:27 +0000 (16:29 +0000)
extra-link-arg-etc: support all link types (credit @davidhewitt)

This commit adds support for the remaining link types to `-Zextra-link-arg-etc`:
`
rustc-link-arg-tests
rustc-link-arg-benches
rustc-link-arg-examples
`
This would be useful in PyO3, where users writing Python extension modules (which do link against libpython) want to run cargo tests for extension module. As executables, these tests need to link against libpython.

This is a follow up of https://github.com/rust-lang/cargo/pull/9416 by `@davidhewitt`

1  2 
src/cargo/util/config/target.rs
src/doc/src/reference/build-scripts.md

Simple merge