I have a build.rs script in a crate that imports a -sys crate I am working on. Toolchain is x86_64-pc-windows-msvc. The -sys crate emits cargo:rustc-link-search=native=c:\lib and the build script is unable to load because it can't find a dll. The path environment variable contains ...;native=C:\lib;...
A workaround is to emit cargo:rustc-link-search=c:\lib instead.
Bug is present in cargo 0.19 from git, and cargo-0.17.0-nightly (f9e5481 2017-03-03) from rust 1.16 stable.