-
Notifications
You must be signed in to change notification settings - Fork 411
Incremental builds #381
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
Comments
I believe this is only an issue if you switch between using A simple test is: # Ensure we're using the latest cross
cargo install cross --git https://github.com/cross-rs/cross
# Build a sample project with numerous dependencies.
git clone https://github.com/hyperium/hyper
cd hyper
git checkout v0.14.16
# Build once
cross build --target sparc64-unknown-linux-gnu
# Apply a patch and rebuild
git apply << EOF
diff --git a/src/lib.rs b/src/lib.rs
index 41a0b375..1d1ef726 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -6,6 +6,8 @@
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
#![cfg_attr(docsrs, feature(doc_cfg))]
+// Modified file
+
//! # hyper
//!
//! hyper is a **fast** and **correct** HTTP implementation written in and for Rust.
EOF
cross build --target sparc64-unknown-linux-gnu --verbose In this example, only If you cargo on the host and use cross afterwards, however, yes, the entire dependency tree is rebuilt. |
it shouldn't invalidate incremental data, as the directory for incremental data will be in |
I believe this is linked to #280. |
If this reproduces outside of a situation where you switch between |
Is there a way to prebuild certain libraries, so that next builds are a lot faster?
The text was updated successfully, but these errors were encountered: