Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upreuse cargo check/build build.rs results? #753
Comments
This comment has been minimized.
This comment has been minimized.
|
We basically can't share data between RLS and non-RLS because the RLS builds are done with a custom compiler and with different flags. Even if we did try to unify the two, it could mean that a user could cause there CLI use of Cargo to rebuild due to the RLS needing to rebuild or vice versa (and also there mightbe changes that the RLS doesn't know about so doesn't rebuild when it should). All in all, it seems much simpler if we keep builds separate. It is pretty annoying when it means artefacts like this can't be shared. |
nrc
closed this
Mar 8, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dushistov commentedMar 6, 2018
•
edited
One of crate that I use inside workspace is fork of servo skia.
Ok, workspace looks like is not really supported (I mean idea to build crates only once per workspace), according to #730 .
But even if I use servo skia as standalone crate,
without any workspace, then
rlsactually rebuild huge c++ library again:as can you see
cargo check/cargo buildshares one directory:target/debug,and rls use another one
target/rlsand rebuild c++ library again, because of building of skia is part ofbuild.rs.Is it possible to reuse results of
build.rsfromtarget/debug?