Rename method in opt-dist
This makes it clearer that the LLVM is the host one (it doesn't necessarily have to be downloaded).
This commit is contained in:
parent
03a119b0b0
commit
65e468f9c2
@ -14,7 +14,7 @@ fn checkout_path(&self) -> Utf8PathBuf {
|
|||||||
Utf8PathBuf::from("/checkout")
|
Utf8PathBuf::from("/checkout")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn downloaded_llvm_dir(&self) -> Utf8PathBuf {
|
fn host_llvm_dir(&self) -> Utf8PathBuf {
|
||||||
Utf8PathBuf::from("/rustroot")
|
Utf8PathBuf::from("/rustroot")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ fn host_triple(&self) -> String {
|
|||||||
/// The rustc checkout, where the compiler source is located.
|
/// The rustc checkout, where the compiler source is located.
|
||||||
fn checkout_path(&self) -> Utf8PathBuf;
|
fn checkout_path(&self) -> Utf8PathBuf;
|
||||||
|
|
||||||
/// Path to the downloaded host LLVM.
|
/// Path to the host LLVM used to compile LLVM in `src/llvm-project`.
|
||||||
fn downloaded_llvm_dir(&self) -> Utf8PathBuf;
|
fn host_llvm_dir(&self) -> Utf8PathBuf;
|
||||||
|
|
||||||
/// Directory where the optimization artifacts (PGO/BOLT profiles, etc.)
|
/// Directory where the optimization artifacts (PGO/BOLT profiles, etc.)
|
||||||
/// will be stored.
|
/// will be stored.
|
||||||
|
@ -24,7 +24,7 @@ fn checkout_path(&self) -> Utf8PathBuf {
|
|||||||
self.checkout_dir.clone()
|
self.checkout_dir.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn downloaded_llvm_dir(&self) -> Utf8PathBuf {
|
fn host_llvm_dir(&self) -> Utf8PathBuf {
|
||||||
self.checkout_path().join("citools").join("clang-rust")
|
self.checkout_path().join("citools").join("clang-rust")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ fn merge_llvm_profiles(
|
|||||||
profdata: LlvmProfdata,
|
profdata: LlvmProfdata,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
let llvm_profdata = match profdata {
|
let llvm_profdata = match profdata {
|
||||||
LlvmProfdata::Host => env.downloaded_llvm_dir().join("bin/llvm-profdata"),
|
LlvmProfdata::Host => env.host_llvm_dir().join("bin/llvm-profdata"),
|
||||||
LlvmProfdata::Target => env
|
LlvmProfdata::Target => env
|
||||||
.build_artifacts()
|
.build_artifacts()
|
||||||
.join("llvm")
|
.join("llvm")
|
||||||
|
Loading…
Reference in New Issue
Block a user