move src/tools/build_helper
into src/build_helper
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
6b38a159e5
commit
bc7531089e
22 changed files with 14 additions and 14 deletions
|
@ -2,12 +2,12 @@
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
members = [
|
members = [
|
||||||
"compiler/rustc",
|
"compiler/rustc",
|
||||||
|
"src/build_helper",
|
||||||
"src/etc/test-float-parse",
|
"src/etc/test-float-parse",
|
||||||
"src/rustc-std-workspace/rustc-std-workspace-core",
|
"src/rustc-std-workspace/rustc-std-workspace-core",
|
||||||
"src/rustc-std-workspace/rustc-std-workspace-alloc",
|
"src/rustc-std-workspace/rustc-std-workspace-alloc",
|
||||||
"src/rustc-std-workspace/rustc-std-workspace-std",
|
"src/rustc-std-workspace/rustc-std-workspace-std",
|
||||||
"src/rustdoc-json-types",
|
"src/rustdoc-json-types",
|
||||||
"src/tools/build_helper",
|
|
||||||
"src/tools/cargotest",
|
"src/tools/cargotest",
|
||||||
"src/tools/clippy",
|
"src/tools/clippy",
|
||||||
"src/tools/clippy/clippy_dev",
|
"src/tools/clippy/clippy_dev",
|
||||||
|
|
|
@ -40,7 +40,7 @@ test = false
|
||||||
cc = "=1.1.22"
|
cc = "=1.1.22"
|
||||||
cmake = "=0.1.48"
|
cmake = "=0.1.48"
|
||||||
|
|
||||||
build_helper = { path = "../tools/build_helper" }
|
build_helper = { path = "../build_helper" }
|
||||||
clap = { version = "4.4", default-features = false, features = ["std", "usage", "help", "derive", "error-context"] }
|
clap = { version = "4.4", default-features = false, features = ["std", "usage", "help", "derive", "error-context"] }
|
||||||
clap_complete = "4.4"
|
clap_complete = "4.4"
|
||||||
fd-lock = "4.0"
|
fd-lock = "4.0"
|
||||||
|
|
|
@ -295,7 +295,7 @@ macro_rules! lint_any {
|
||||||
|
|
||||||
lint_any!(
|
lint_any!(
|
||||||
Bootstrap, "src/bootstrap", "bootstrap";
|
Bootstrap, "src/bootstrap", "bootstrap";
|
||||||
BuildHelper, "src/tools/build_helper", "build_helper";
|
BuildHelper, "src/build_helper", "build_helper";
|
||||||
BuildManifest, "src/tools/build-manifest", "build-manifest";
|
BuildManifest, "src/tools/build-manifest", "build-manifest";
|
||||||
CargoMiri, "src/tools/miri/cargo-miri", "cargo-miri";
|
CargoMiri, "src/tools/miri/cargo-miri", "cargo-miri";
|
||||||
Clippy, "src/tools/clippy", "clippy";
|
Clippy, "src/tools/clippy", "clippy";
|
||||||
|
|
|
@ -1030,7 +1030,7 @@ macro_rules! tool_doc {
|
||||||
// NOTE: make sure to register these in `Builder::get_step_description`.
|
// NOTE: make sure to register these in `Builder::get_step_description`.
|
||||||
tool_doc!(
|
tool_doc!(
|
||||||
BuildHelper,
|
BuildHelper,
|
||||||
"src/tools/build_helper",
|
"src/build_helper",
|
||||||
rustc_tool = false,
|
rustc_tool = false,
|
||||||
is_library = true,
|
is_library = true,
|
||||||
crates = ["build_helper"]
|
crates = ["build_helper"]
|
||||||
|
|
|
@ -1354,7 +1354,7 @@ impl Step for CrateBuildHelper {
|
||||||
const ONLY_HOSTS: bool = true;
|
const ONLY_HOSTS: bool = true;
|
||||||
|
|
||||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||||
run.path("src/tools/build_helper")
|
run.path("src/build_helper")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
|
@ -1372,7 +1372,7 @@ impl Step for CrateBuildHelper {
|
||||||
Mode::ToolBootstrap,
|
Mode::ToolBootstrap,
|
||||||
host,
|
host,
|
||||||
Kind::Test,
|
Kind::Test,
|
||||||
"src/tools/build_helper",
|
"src/build_helper",
|
||||||
SourceType::InTree,
|
SourceType::InTree,
|
||||||
&[],
|
&[],
|
||||||
);
|
);
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub struct Stage0Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse_stage0_file() -> Stage0 {
|
pub fn parse_stage0_file() -> Stage0 {
|
||||||
let stage0_content = include_str!("../../../stage0");
|
let stage0_content = include_str!("../../stage0");
|
||||||
|
|
||||||
let mut stage0 = Stage0::default();
|
let mut stage0 = Stage0::default();
|
||||||
for line in stage0_content.lines() {
|
for line in stage0_content.lines() {
|
|
@ -7,7 +7,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.34"
|
anyhow = "1.0.34"
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
curl = "0.4.38"
|
curl = "0.4.38"
|
||||||
indexmap = { version = "2.0.0", features = ["serde"] }
|
indexmap = { version = "2.0.0", features = ["serde"] }
|
||||||
serde = { version = "1.0.125", features = ["derive"] }
|
serde = { version = "1.0.125", features = ["derive"] }
|
||||||
|
|
|
@ -14,7 +14,7 @@ unified-diff = "0.2.1"
|
||||||
getopts = "0.2"
|
getopts = "0.2"
|
||||||
indexmap = "2.0.0"
|
indexmap = "2.0.0"
|
||||||
miropt-test-tools = { path = "../miropt-test-tools" }
|
miropt-test-tools = { path = "../miropt-test-tools" }
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
|
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
|
||||||
regex = "1.0"
|
regex = "1.0"
|
||||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
env_logger = "0.11"
|
env_logger = "0.11"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
anyhow = { version = "1", features = ["backtrace"] }
|
anyhow = { version = "1", features = ["backtrace"] }
|
||||||
|
|
|
@ -10,7 +10,7 @@ similar = "2.5.0"
|
||||||
wasmparser = { version = "0.216", default-features = false, features = ["std"] }
|
wasmparser = { version = "0.216", default-features = false, features = ["std"] }
|
||||||
regex = "1.8" # 1.8 to avoid memchr 2.6.0, as 2.5.0 is pinned in the workspace
|
regex = "1.8" # 1.8 to avoid memchr 2.6.0, as 2.5.0 is pinned in the workspace
|
||||||
gimli = "0.31.0"
|
gimli = "0.31.0"
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
compiletest = { path = "../compiletest" }
|
compiletest = { path = "../compiletest" }
|
||||||
getopts = "0.2"
|
getopts = "0.2"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
|
|
|
@ -5,4 +5,4 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glob = "0.3.0"
|
glob = "0.3.0"
|
||||||
build_helper = { version = "0.1.0", path = "../build_helper" }
|
build_helper = { version = "0.1.0", path = "../../build_helper" }
|
||||||
|
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
||||||
autobins = false
|
autobins = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
build_helper = { path = "../build_helper" }
|
build_helper = { path = "../../build_helper" }
|
||||||
cargo_metadata = "0.18"
|
cargo_metadata = "0.18"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
miropt-test-tools = { path = "../miropt-test-tools" }
|
miropt-test-tools = { path = "../miropt-test-tools" }
|
||||||
|
|
Loading…
Add table
Reference in a new issue