File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ pub(crate) fn maybe_download_ci_llvm(builder: &Builder<'_>) {
156
156
let llvm_lib = llvm_root. join ( "lib" ) ;
157
157
for entry in t ! ( fs:: read_dir( & llvm_lib) ) {
158
158
let lib = t ! ( entry) . path ( ) ;
159
- if lib. ends_with ( ". so") {
159
+ if lib. extension ( ) . map_or ( false , |ext| ext == " so") {
160
160
fix_bin_or_dylib ( builder, & lib) ;
161
161
}
162
162
}
@@ -284,7 +284,7 @@ fn fix_bin_or_dylib(builder: &Builder<'_>, fname: &Path) {
284
284
entries
285
285
} ;
286
286
patchelf. args ( & [ OsString :: from ( "--set-rpath" ) , rpath_entries] ) ;
287
- if !fname. ends_with ( ". so") {
287
+ if !fname. extension ( ) . map_or ( false , |ext| ext == " so") {
288
288
// Finally, set the corret .interp for binaries
289
289
let dynamic_linker_path = nix_deps_dir. join ( "nix-support/dynamic-linker" ) ;
290
290
// FIXME: can we support utf8 here? `args` doesn't accept Vec<u8>, only OsString ...
You can’t perform that action at this time.
0 commit comments