about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJonathan Pallant <jonathan.pallant@ferrous-systems.com>2024-07-04 18:34:35 +0100
committerJonathan Pallant <jonathan.pallant@ferrous-systems.com>2024-08-06 11:04:55 +0100
commitba0d6c973994915faef00e0e15e2957ff2b286b7 (patch)
treec23e59fa1e1b8d80f92116ec9caa874785c8c59d /src/bootstrap
parent93ea767e2928589b74296ba85b57d80e108db712 (diff)
downloadrust-ba0d6c973994915faef00e0e15e2957ff2b286b7.tar.gz
rust-ba0d6c973994915faef00e0e15e2957ff2b286b7.zip
Update generate-copyright
This tool now scans for cargo dependencies and includes any important looking license files.

We do this because cargo package metadata is not sufficient - the Apache-2.0 license says you have to include any NOTICE file, for example. And authors != copyright holders (cargo has the former, we must include the latter).
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/run.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/run.rs b/src/bootstrap/src/core/build_steps/run.rs
index fde1693646a..29d7bcc425b 100644
--- a/src/bootstrap/src/core/build_steps/run.rs
+++ b/src/bootstrap/src/core/build_steps/run.rs
@@ -217,6 +217,8 @@ impl Step for GenerateCopyright {
         let mut cmd = builder.tool_cmd(Tool::GenerateCopyright);
         cmd.env("LICENSE_METADATA", &license_metadata);
         cmd.env("DEST", &dest);
+        cmd.env("OUT_DIR", &builder.out);
+        cmd.env("CARGO", &builder.initial_cargo);
         cmd.run(builder);
 
         dest