]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/doc.rs
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)
commitb2496f059092f7f76ca1c006d158fa2caf2f1fee
tree7cdffd3724e0e6a46b72a59155de9e4c5d2a0c33
parentf639ea3b96b208124cc6d0e882965ea2b976689d
parent541c908ef69e7fb91706ab21dbe5446d0f151f0c
Auto merge of #10274 - aviramha:extra-link-args, r=ehuss

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`
src/cargo/util/config/target.rs
src/doc/src/reference/build-scripts.md