use std::path::{Path, PathBuf};
use std::process::Command;
-use build_helper::{output, t};
-
use crate::builder::{Builder, Kind, RunConfig, ShouldRun, Step};
use crate::cache::{Interned, INTERNER};
use crate::compile;
use crate::config::TargetSelection;
use crate::tarball::{GeneratedTarball, OverlayKind, Tarball};
use crate::tool::{self, Tool};
-use crate::util::{exe, is_dylib, timeit};
+use crate::util::{exe, is_dylib, output, t, timeit};
use crate::{Compiler, DependencyType, Mode, LLVM_TOOLS};
pub fn pkgname(builder: &Builder<'_>, component: &str) -> String {
&[],
&tarball.image_dir().join("lib/rustlib/rustc-src/rust"),
);
- // This particular crate is used as a build dependency of the above.
- copy_src_dirs(
- builder,
- &builder.src,
- &["src/build_helper"],
- &[],
- &tarball.image_dir().join("lib/rustlib/rustc-src/rust"),
- );
for file in src_files {
tarball.add_file(builder.src.join(file), "lib/rustlib/rustc-src/rust", 0o644);
}
// not needed and contains symlinks which rustup currently
// chokes on when unpacking.
"library/backtrace/crates",
+ // these are 30MB combined and aren't necessary for building
+ // the standard library.
+ "library/stdarch/crates/Cargo.toml",
+ "library/stdarch/crates/stdarch-verify",
+ "library/stdarch/crates/intrinsic-test",
],
&dst_src,
);
}
}
-/// Tarball containing a prebuilt version of the build-manifest tool, intented to be used by the
+/// Tarball containing a prebuilt version of the build-manifest tool, intended to be used by the
/// release process to avoid cloning the monorepo and building stuff.
///
/// Should not be considered stable by end users.