Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/bootstrap/src/core/build_steps/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ impl Step for Vendor {
cmd.arg("--sync").arg(sync_arg);
}

// Reuse vendored dependencies when building source tarball for offline support.
if builder.config.vendor {
cmd.arg("--respect-source-config")
.arg("--config")
.arg(builder.src.join(".cargo").join("config.toml"));
}

// Will read the libstd Cargo.toml
// which uses the unstable `public-dependency` feature.
cmd.env("RUSTC_BOOTSTRAP", "1");
Expand All @@ -135,6 +142,13 @@ impl Step for Vendor {
cmd.arg("--versioned-dirs");
}

// Reuse vendored dependencies when building source tarball for offline support.
if builder.config.vendor {
cmd.arg("--respect-source-config")
.arg("--config")
.arg(builder.src.join("library").join(".cargo").join("config.toml"));
}

// Will read the libstd Cargo.toml
// which uses the unstable `public-dependency` feature.
cmd.env("RUSTC_BOOTSTRAP", "1");
Expand Down
Loading