-
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
passing -o to |cargo rustc| results in rebuilds even when nothing has changed #2928
Comments
I believe this is because Cargo knows the output of the compiler, and if it doesn't find it in the expected place it assumes the compiler didn't run to begin with. In that sense, this is expected behavior I think. Could you clarify what you're using |
This is expected behavior generally, or this is expected behavior given that
I'm using |
Ah yeah to clarify this is expected behavior of
Out of curiosity, can this be done with |
I mean, you /can/ pluck things out of cargo's directory structure, it is just less convenient to do so (especially since the directory structure changes depending on what kind of build you're doing). |
True yeah, although the only change in directory structure should be "debug" vs "release". Cargo also produces multiple outputs, so a general "place the output file here" may not work so well :( |
I believe this aspect is the best we can do, either using
I believe this request is a duplicate of #4427. Once cargo knows where its output directory is (once we actually enable setting it), the original issue noted in the description should be solved. If I'm misunderstanding or missing something, please reopen! Thank you! |
This issue is sort of related to #2559, but distinct from it, I think. Consider the following sequence, where we attempt to pass
-o
torustc
:Compare to not passing
-o
:I would expect these two sequences to do a build the first time and then nothing the second time.
The text was updated successfully, but these errors were encountered: