@@ -18,6 +18,7 @@ fn main() -> Result<(), Error> {
18
18
let dest_file = env_path ( "DEST" ) ?;
19
19
let libstd_dest_file = env_path ( "DEST_LIBSTD" ) ?;
20
20
let out_dir = env_path ( "OUT_DIR" ) ?;
21
+ let src_dir = env_path ( "SRC_DIR" ) ?;
21
22
let cargo = env_path ( "CARGO" ) ?;
22
23
let license_metadata = env_path ( "LICENSE_METADATA" ) ?;
23
24
@@ -27,7 +28,7 @@ fn main() -> Result<(), Error> {
27
28
let mut collected_cargo_metadata = cargo_metadata:: get_metadata_and_notices (
28
29
& cargo,
29
30
& out_dir. join ( "vendor" ) ,
30
- & root_path ,
31
+ & src_dir ,
31
32
& [
32
33
Path :: new ( "./Cargo.toml" ) ,
33
34
Path :: new ( "./src/tools/cargo/Cargo.toml" ) ,
@@ -38,7 +39,7 @@ fn main() -> Result<(), Error> {
38
39
let library_collected_cargo_metadata = cargo_metadata:: get_metadata_and_notices (
39
40
& cargo,
40
41
& out_dir. join ( "library-vendor" ) ,
41
- & root_path ,
42
+ & src_dir ,
42
43
& [ Path :: new ( "./library/Cargo.toml" ) ] ,
43
44
) ?;
44
45
@@ -54,7 +55,7 @@ fn main() -> Result<(), Error> {
54
55
let library_collected_tree_metadata = Metadata {
55
56
files : collected_tree_metadata
56
57
. files
57
- . trim_clone ( & Path :: new ( "./ library") , & Path :: new ( "." ) )
58
+ . trim_clone ( & src_dir . join ( " library") , & src_dir )
58
59
. unwrap ( ) ,
59
60
} ;
60
61
0 commit comments