-
Notifications
You must be signed in to change notification settings - Fork 2.6k
no separate caching for target/host #7822
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hm, I'm unable to reproduce your example. Can you run with the |
I find out culprit: $ cat ~/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Clink-arg=-fuse-ld=gold"] If I remove ~/.cargo/config from my home directory caching starts work, Have no idea why change of linker for x86_64 breaks cargo caching though. |
Ah. The reason is that when using the |
I'm going to close this as it seems like the problem was figured out, and there are other issues tracking handling of RUSTFLAGS. |
Problem
I compile for PC and "Raspberry PI 3" from the same sources,
every time I change target it recomiples from scratch all dependicies what is very strange,
because of data in separate directories:
target/debug
and
target/armv7-unknown-linux-gnueabihf/debug
Steps
myapp.zip
crate in attachment.
and you see that cache for host is gone and
cargo
rebuild all from scratch.Notes
Output of
cargo version
:cargo 1.40.0 (bc8e4c8 2019-11-22)
This is happens only if rppal used as dependency, but any way why armv7-unknown-linux-gnueabihf and my host (x86_64-unknown-linux-gnu) can interfere to each other?
rustc 1.40.0 (73528e339 2019-12-16) / linux / amd64, stable installed via rustup.
The text was updated successfully, but these errors were encountered: