Skip to content

Commit 248b7f9

Browse files
Shourya742ZhongyaoChen
authored andcommitted
add ci_llvm_root function and invoke from parse_inner
1 parent e36aeb1 commit 248b7f9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,8 @@ impl Config {
12781278

12791279
if config.llvm_from_ci {
12801280
let triple = &config.host_target.triple;
1281-
let ci_llvm_bin = config.ci_llvm_root().join("bin");
1281+
let ci_llvm_bin =
1282+
ci_llvm_root(config.llvm_from_ci, &config.out, &config.host_target).join("bin");
12821283
let build_target = config
12831284
.target_config
12841285
.entry(config.host_target)
@@ -2741,3 +2742,12 @@ pub fn is_system_llvm(
27412742
pub fn is_host_target(host_target: &TargetSelection, target: &TargetSelection) -> bool {
27422743
host_target == target
27432744
}
2745+
2746+
pub(crate) fn ci_llvm_root(
2747+
llvm_from_ci: bool,
2748+
out: &Path,
2749+
host_target: &TargetSelection,
2750+
) -> PathBuf {
2751+
assert!(llvm_from_ci);
2752+
out.join(host_target).join("ci-llvm")
2753+
}

0 commit comments

Comments
 (0)