]> git.proxmox.com Git - cargo.git/commit
Pass link search path to doctests even if build script gave no links
authorSean Griffin <sean@seantheprogrammer.com>
Thu, 17 Dec 2015 21:14:40 +0000 (14:14 -0700)
committerSean Griffin <sean@seantheprogrammer.com>
Thu, 17 Dec 2015 21:19:58 +0000 (14:19 -0700)
commit8c65284b44337c6cfc003cedc8996e241ac678bd
tree68e1c01ca771c6c05fa542299339343e6bd121f6
parent2cdeb0797a5d60b6a1d5e98e18c456bde8128bb7
Pass link search path to doctests even if build script gave no links

It is entirely possible for a crate to have a build script that is simply
the equivalent to

```rustc
fn main() {
    println!("cargo:rustc-link-search=native=/some/path");
}
```

Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.

Fixes #1592
src/cargo/ops/cargo_rustc/mod.rs