File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -178,22 +178,22 @@ fn find_libdir(sysroot: &Path) -> Cow<'static, str> {
178
178
// If --libdir is set during configuration to the value other than
179
179
// "lib" (i.e. non-default), this value is used (see issue #16552).
180
180
181
- match option_env ! ( "CFG_LIBDIR_RELATIVE" ) {
182
- Some ( libdir) if libdir != "lib" => return libdir. into ( ) ,
183
- _ => if sysroot. join ( PRIMARY_LIB_DIR ) . join ( RUST_LIB_DIR ) . exists ( ) {
184
- return PRIMARY_LIB_DIR . into ( ) ;
185
- } else {
186
- return SECONDARY_LIB_DIR . into ( ) ;
187
- }
188
- }
189
-
190
181
#[ cfg( target_pointer_width = "64" ) ]
191
182
const PRIMARY_LIB_DIR : & ' static str = "lib64" ;
192
183
193
184
#[ cfg( target_pointer_width = "32" ) ]
194
185
const PRIMARY_LIB_DIR : & ' static str = "lib32" ;
195
186
196
187
const SECONDARY_LIB_DIR : & ' static str = "lib" ;
188
+
189
+ match option_env ! ( "CFG_LIBDIR_RELATIVE" ) {
190
+ Some ( libdir) if libdir != "lib" => libdir. into ( ) ,
191
+ _ => if sysroot. join ( PRIMARY_LIB_DIR ) . join ( RUST_LIB_DIR ) . exists ( ) {
192
+ PRIMARY_LIB_DIR . into ( )
193
+ } else {
194
+ SECONDARY_LIB_DIR . into ( )
195
+ }
196
+ }
197
197
}
198
198
199
199
// The name of rustc's own place to organize libraries.
You can’t perform that action at this time.
0 commit comments