File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,16 +6,18 @@ pub const REVIVE_LLVM_HOST_PREFIX: &str = "LLVM_SYS_181_PREFIX";
66/// The revive LLVM target dependency directory prefix environment variable.
77pub const REVIVE_LLVM_TARGET_PREFIX : & str = "REVIVE_LLVM_TARGET_PREFIX" ;
88
9+ /// The revive LLVM host tool help link.
10+ pub const REVIVE_LLVM_BUILDER_HELP_LINK : & str =
11+ "https://github.com/paritytech/revive?tab=readme-ov-file#building-from-source" ;
12+
913/// Constructs a path to the LLVM tool `name`.
1014///
1115/// Respects the [`REVIVE_LLVM_HOST_PREFIX`] environment variable.
1216pub fn llvm_host_tool ( name : & str ) -> std:: path:: PathBuf {
1317 std:: env:: var_os ( REVIVE_LLVM_HOST_PREFIX )
1418 . map ( Into :: < std:: path:: PathBuf > :: into)
1519 . unwrap_or_else ( || {
16- panic ! (
17- "install LLVM using the revive-llvm builder and export {REVIVE_LLVM_HOST_PREFIX}" ,
18- )
20+ panic ! ( "install LLVM using the revive-llvm builder and export '{REVIVE_LLVM_HOST_PREFIX}'; see also: {REVIVE_LLVM_BUILDER_HELP_LINK}" )
1921 } )
2022 . join ( "bin" )
2123 . join ( name)
You can’t perform that action at this time.
0 commit comments