Skip to content

Commit 2769d6b

Browse files
Minor refactoring
1 parent 6c943ba commit 2769d6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/config.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,6 @@ impl Config {
993993
// This is currently all tier 1 targets and tier 2 targets with host tools
994994
// (since others may not have CI artifacts)
995995
// https://doc.rust-lang.org/rustc/platform-support.html#tier-1
996-
// FIXME: this is duplicated in bootstrap.py
997996
let supported_platforms = [
998997
// tier 1
999998
"aarch64-unknown-linux-gnu",
@@ -1176,14 +1175,14 @@ impl Config {
11761175

11771176
if config.llvm_from_ci {
11781177
let triple = &config.build.triple;
1178+
let ci_llvm_bin = config.ci_llvm_root().join("bin");
11791179
let mut build_target = config
11801180
.target_config
11811181
.entry(config.build)
11821182
.or_insert_with(|| Target::from_triple(&triple));
11831183

11841184
check_ci_llvm!(build_target.llvm_config);
11851185
check_ci_llvm!(build_target.llvm_filecheck);
1186-
let ci_llvm_bin = config.out.join(&*config.build.triple).join("ci-llvm/bin");
11871186
build_target.llvm_config = Some(ci_llvm_bin.join(exe("llvm-config", config.build)));
11881187
build_target.llvm_filecheck = Some(ci_llvm_bin.join(exe("FileCheck", config.build)));
11891188
}

0 commit comments

Comments
 (0)