diff options
| author | Ana Hobden <ana.hobden@ferrous-systems.com> | 2025-05-30 12:52:50 -0700 |
|---|---|---|
| committer | Ana Hobden <ana.hobden@ferrous-systems.com> | 2025-05-30 12:52:50 -0700 |
| commit | f886925ed3d88780ea7ab0089594aa3189b9f422 (patch) | |
| tree | 974d845d37280df33bbf482cee1c70b57965b1b0 /src/bootstrap | |
| parent | a8e4c68dcb4dc1e48a0db294c5323cab0227fcb9 (diff) | |
| download | rust-f886925ed3d88780ea7ab0089594aa3189b9f422.tar.gz rust-f886925ed3d88780ea7ab0089594aa3189b9f422.zip | |
Exclude `CARGO_HOME` from `generate-copyright` in-tree determination
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/run.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/run.rs b/src/bootstrap/src/core/build_steps/run.rs index 0bba441c3fa..7b0b01910d0 100644 --- a/src/bootstrap/src/core/build_steps/run.rs +++ b/src/bootstrap/src/core/build_steps/run.rs @@ -5,7 +5,6 @@ use std::path::PathBuf; -use crate::Mode; use crate::core::build_steps::dist::distdir; use crate::core::build_steps::test; use crate::core::build_steps::tool::{self, SourceType, Tool}; @@ -14,6 +13,7 @@ use crate::core::builder::{Builder, Kind, RunConfig, ShouldRun, Step}; use crate::core::config::TargetSelection; use crate::core::config::flags::get_completion; use crate::utils::exec::command; +use crate::{Mode, t}; #[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)] pub struct BuildManifest; @@ -243,6 +243,7 @@ impl Step for GenerateCopyright { cmd.env("SRC_DIR", &builder.src); cmd.env("VENDOR_DIR", &vendored_sources); cmd.env("CARGO", &builder.initial_cargo); + cmd.env("CARGO_HOME", t!(home::cargo_home())); // it is important that generate-copyright runs from the root of the // source tree, because it uses relative paths cmd.current_dir(&builder.src); |
