File tree 2 files changed +7
-1
lines changed
bootstrap/src/core/build_steps
tools/generate-copyright/src
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,9 @@ impl Step for GenerateCopyright {
218
218
cmd. env ( "DEST_LIBSTD" , & dest_libstd) ;
219
219
cmd. env ( "OUT_DIR" , & builder. out ) ;
220
220
cmd. env ( "CARGO" , & builder. initial_cargo ) ;
221
+ // it is important that generate-copyright runs from the root of the
222
+ // source tree, because it uses relative paths
223
+ cmd. current_dir ( & builder. src ) ;
221
224
cmd. run ( builder) ;
222
225
223
226
vec ! [ dest, dest_libstd]
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ mod cargo_metadata;
8
8
9
9
/// The entry point to the binary.
10
10
///
11
- /// You should probably let `bootstrap` execute this program instead of running it directly.
11
+ /// You should probably let `bootstrap` execute this program instead of running
12
+ /// it directly. It assumes that the current working directory is the root of a
13
+ /// Rust git repository checkout, and constructs a bunch of relative paths based
14
+ /// on that assumption.
12
15
///
13
16
/// Run `x.py run generate-copyright`
14
17
fn main ( ) -> Result < ( ) , Error > {
You can’t perform that action at this time.
0 commit comments