Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix renaming a project using build scripts #4818

Merged
merged 1 commit into from
Dec 18, 2017

Commits on Dec 18, 2017

  1. Fix renaming a project using build scripts

    This commit fixes an issue in Cargo where if a project's folder was
    renamed but it also contained a build script the project could break.
    Cargo would continue to use the previous `rustc-link-search` arguments
    to configure env vars like `LD_LIBRARY_PATH` but the literal values from
    the previous compilation would be stale as the directories would no
    longer be there.
    
    To fix this when parsing the build script output we now retain a log of
    the previous output directory of a build script invocation as well as
    the current output, tweaking paths as appropriate if they were contained
    in the output folder.
    
    Closes rust-lang#4053
    alexcrichton committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    f0c0a6a View commit details
    Browse the repository at this point in the history