mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Ensure generate-copyright is executed from the project root.
This commit is contained in:
@@ -218,6 +218,9 @@ fn run(self, builder: &Builder<'_>) -> Self::Output {
|
||||
cmd.env("DEST_LIBSTD", &dest_libstd);
|
||||
cmd.env("OUT_DIR", &builder.out);
|
||||
cmd.env("CARGO", &builder.initial_cargo);
|
||||
// it is important that generate-copyright runs from the root of the
|
||||
// source tree, because it uses relative paths
|
||||
cmd.current_dir(&builder.src);
|
||||
cmd.run(builder);
|
||||
|
||||
vec![dest, dest_libstd]
|
||||
|
||||
@@ -8,7 +8,10 @@
|
||||
|
||||
/// The entry point to the binary.
|
||||
///
|
||||
/// You should probably let `bootstrap` execute this program instead of running it directly.
|
||||
/// You should probably let `bootstrap` execute this program instead of running
|
||||
/// it directly. It assumes that the current working directory is the root of a
|
||||
/// Rust git repository checkout, and constructs a bunch of relative paths based
|
||||
/// on that assumption.
|
||||
///
|
||||
/// Run `x.py run generate-copyright`
|
||||
fn main() -> Result<(), Error> {
|
||||
|
||||
Reference in New Issue
Block a user