File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/tools/run-make-support/src Expand file tree Collapse file tree 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 {
145145 }
146146}
147147
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.
150156#[ must_use]
151157pub fn rust_lib ( name : & str ) -> PathBuf {
152- tmp_dir ( ) . join ( format ! ( "lib{ name}.rlib" ) )
158+ tmp_dir ( ) . join ( rust_lib_name ( name) )
153159}
154160
155161/// Construct the binary name based on platform.
You can’t perform that action at this time.
0 commit comments