Skip to content

Commit 9dee139

Browse files
authored
Merge pull request #39 from cagatay-y/main
specify the toolchain for which llvm-tools is to be installed
2 parents 5dae679 + df1ccee commit 9dee139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rftrace/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ fn binutil(name: &str) -> Result<PathBuf, String> {
182182
let path = llvm_tools::LlvmTools::new()
183183
.map_err(|err| match err {
184184
llvm_tools::Error::NotFound =>
185-
"Could not find llvm-tools component\n\
185+
format!("Could not find llvm-tools component\n\
186186
\n\
187-
Maybe the rustup component `llvm-tools` is missing? Install it through: `rustup component add llvm-tools`".to_string()
187+
Maybe the rustup component `llvm-tools` is missing? Install it through: `rustup component add --toolchain={} llvm-tools`", env::var("RUSTUP_TOOLCHAIN").unwrap()).to_string()
188188
,
189189
err => format!("{err:?}"),
190190
})?

0 commit comments

Comments
 (0)