File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed 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";
6
6
/// The revive LLVM target dependency directory prefix environment variable.
7
7
pub const REVIVE_LLVM_TARGET_PREFIX : & str = "REVIVE_LLVM_TARGET_PREFIX" ;
8
8
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
+
9
13
/// Constructs a path to the LLVM tool `name`.
10
14
///
11
15
/// Respects the [`REVIVE_LLVM_HOST_PREFIX`] environment variable.
12
16
pub fn llvm_host_tool ( name : & str ) -> std:: path:: PathBuf {
13
17
std:: env:: var_os ( REVIVE_LLVM_HOST_PREFIX )
14
18
. map ( Into :: < std:: path:: PathBuf > :: into)
15
19
. 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}" )
19
21
} )
20
22
. join ( "bin" )
21
23
. join ( name)
You can’t perform that action at this time.
0 commit comments