diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-08-09 07:47:26 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-08-09 07:47:26 +0530 |
| commit | 2213b7a8f9c3e778a32cddfc19ec58efefcb902c (patch) | |
| tree | ddaf5f23b935083e7b2b2860e1c959eedb4fb5b9 /src/bootstrap | |
| parent | 134fcc8c66808bb781ae67e786e46d63fc48b4b7 (diff) | |
| download | rust-2213b7a8f9c3e778a32cddfc19ec58efefcb902c.tar.gz rust-2213b7a8f9c3e778a32cddfc19ec58efefcb902c.zip | |
add ci_llvm_root function and invoke from parse_inner
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/config/config.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index e5bee0e7ce5..ef8d541500f 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1278,7 +1278,8 @@ impl Config { if config.llvm_from_ci { let triple = &config.host_target.triple; - let ci_llvm_bin = config.ci_llvm_root().join("bin"); + let ci_llvm_bin = + ci_llvm_root(config.llvm_from_ci, &config.out, &config.host_target).join("bin"); let build_target = config .target_config .entry(config.host_target) @@ -2736,3 +2737,12 @@ pub fn is_system_llvm( pub fn is_host_target(host_target: &TargetSelection, target: &TargetSelection) -> bool { host_target == target } + +pub(crate) fn ci_llvm_root( + llvm_from_ci: bool, + out: &Path, + host_target: &TargetSelection, +) -> PathBuf { + assert!(llvm_from_ci); + out.join(host_target).join("ci-llvm") +} |
