mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Distribute rustc sources as part of rustc-dev
This commit is contained in:
parent
7bdb5dee7b
commit
ee1e9343b3
@ -793,6 +793,18 @@ impl Step for RustcDev {
|
|||||||
let stamp = compile::librustc_stamp(builder, compiler_to_use, target);
|
let stamp = compile::librustc_stamp(builder, compiler_to_use, target);
|
||||||
copy_target_libs(builder, target, &image, &stamp);
|
copy_target_libs(builder, target, &image, &stamp);
|
||||||
|
|
||||||
|
// Copy compiler sources.
|
||||||
|
let dst_src = image.join("lib/rustlib/rustc-src/rust");
|
||||||
|
t!(fs::create_dir_all(&dst_src));
|
||||||
|
|
||||||
|
let src_files = ["Cargo.lock"];
|
||||||
|
// This is the reduced set of paths which will become the rustc-dev component
|
||||||
|
// (essentially the compiler crates and all of their path dependencies).
|
||||||
|
copy_src_dirs(builder, &builder.src, &["compiler"], &[], &dst_src);
|
||||||
|
for file in src_files.iter() {
|
||||||
|
builder.copy(&builder.src.join(file), &dst_src.join(file));
|
||||||
|
}
|
||||||
|
|
||||||
let mut cmd = rust_installer(builder);
|
let mut cmd = rust_installer(builder);
|
||||||
cmd.arg("generate")
|
cmd.arg("generate")
|
||||||
.arg("--product-name=Rust")
|
.arg("--product-name=Rust")
|
||||||
|
Loading…
Reference in New Issue
Block a user