File tree 1 file changed +9
-3
lines changed
src/tools/run-make-support/src
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,17 @@ pub fn dynamic_lib_name(name: &str) -> String {
145
145
}
146
146
}
147
147
148
- /// Construct a path to a rust library (rlib) under `$TMPDIR` given the library name. This will return a
149
- /// path with `$TMPDIR` joined with the library name.
148
+ /// Construct the rust library name.
149
+ #[ must_use]
150
+ pub fn rust_lib_name ( name : & str ) -> String {
151
+ format ! ( "lib{name}.rlib" )
152
+ }
153
+
154
+ /// Construct a path to a rust library (rlib) under `$TMPDIR` given the library name. This will
155
+ /// return a path with `$TMPDIR` joined with the library name.
150
156
#[ must_use]
151
157
pub fn rust_lib ( name : & str ) -> PathBuf {
152
- tmp_dir ( ) . join ( format ! ( "lib{ name}.rlib" ) )
158
+ tmp_dir ( ) . join ( rust_lib_name ( name) )
153
159
}
154
160
155
161
/// Construct the binary name based on platform.
You can’t perform that action at this time.
0 commit comments