-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo nightly build with RUSTFLAGS having --remap-path-prefix broke since last nightly on Windows #7211
Comments
Thanks for the report. I'm having a hard time reproducing the issue. Can you tell me which terminal you are using (cmd, powershell, mingw, etc.) and exactly which commands you ran? Also, does it happen with any project, or does it require certain dependencies? |
I'll try to make a minimal repro, meanwhile, if I set to |
@ehuss I think this may be caused by #7030 where we're expecting absolute paths coming out of the compiler but actually the dep-info files are likely lying since they're respecting cc @Mark-Simulacrum, you're likely interested in this as well |
That's quite likely, yes, I wasn't aware that dep-info files are remapped by |
I see what's happening. It's due to this line I added to canonicalize the path. I'll post a PR to try to work around it. As to whether or not the |
Posted #7219 with a fix. Posted rust-lang/rust#63329 for the rustc side. Rebuild detection is broken in Cargo when using |
Problem
When using
remap-path-prefix
before, I was able to set the paths to a common root like : "build/src/", now the generated .d files had wrong paths when trying to set the RUSTFLAGS with remap-path-prefix and cargo fails with:So at the moment, the builds are non reproducible (for me at least)
Steps
RUSTFLAGS=--remap-path-prefix=C:\ard\=\build\src\
on the consolecargo build
N.B: used to work fine before
PS: if you put "quotes" around the value as in
"C:\ard\=\build\src\"
, the remap failsPossible Solution(s)
It seems that some commits regarding the
remap-path-prefix
and dealing with Windows paths, might have broken it:d99b7fe
1140c52
c8a9f88
65e3885
3595de3
4f6553a
Notes
Output of
cargo version
: cargo 1.38.0-nightly (26092da 2019-07-31)Windows 10 x64
rustc 1.38.0-nightly (d3f8a0b5d 2019-08-04)
The text was updated successfully, but these errors were encountered: