Skip to content

mod.rs:add_plugin_deps() does not strip native= from path elements #3957

@mcgoo

Description

@mcgoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions