llvm-builder: do not build clang by default (#168)

We only need LLD for cross compilation. This significantly reduces the LLVM build times in a cross compilation scenario. Update the README as a drive-by.
This commit is contained in:
Cyrill Leutwiler
2025-01-17 16:03:04 +01:00
committed by GitHub
parent 06f43083c3
commit cec283986f
8 changed files with 38 additions and 36 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ path = "src/revive_llvm/main.rs"
doctest = false
[dependencies]
clap = { workspace = true, features = ["std", "derive"] }
clap = { workspace = true, features = ["help", "std", "derive"] }
anyhow = { workspace = true }
serde = { workspace = true, features = [ "derive" ] }
toml = { workspace = true }
+1 -1
View File
@@ -83,7 +83,7 @@ Obtain a compatible build for your host platform from the release section of thi
```shell
revive-llvm clone
revive-llvm build
revive-llvm build --llvm-projects lld --llvm-projects clang
```
Build artifacts end up in the `./target-llvm/gnu/target-final/` directory by default.
@@ -36,13 +36,7 @@ pub enum Subcommand {
targets: Vec<String>,
/// LLVM projects to build LLVM with.
#[arg(
long,
default_values_t = vec![
revive_llvm_builder::llvm_project::LLVMProject::CLANG,
revive_llvm_builder::llvm_project::LLVMProject::LLD
]
)]
#[arg(long)]
llvm_projects: Vec<revive_llvm_builder::llvm_project::LLVMProject>,
/// Whether to build LLVM with run-time type information (RTTI) enabled.