File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 26
26
#![ deny( missing_copy_implementations, safe_packed_borrows) ]
27
27
#![ cfg_attr( not( feature = "rustc-dep-of-std" ) , no_std) ]
28
28
#![ cfg_attr( feature = "rustc-dep-of-std" , no_core) ]
29
- #![ cfg_attr(
30
- feature = "rustc-dep-of-std" ,
31
- feature( native_link_modifiers, native_link_modifiers_bundle)
32
- ) ]
33
29
#![ cfg_attr( libc_const_extern_fn_unstable, feature( const_extern_fn) ) ]
34
30
35
31
#[ macro_use]
Original file line number Diff line number Diff line change @@ -346,6 +346,14 @@ cfg_if! {
346
346
} else if #[ cfg( target_os = "emscripten" ) ] {
347
347
#[ link( name = "c" ) ]
348
348
extern { }
349
+ } else if #[ cfg( all( target_os = "android" , feature = "rustc-dep-of-std" ) ) ] {
350
+ #[ link( name = "c" , kind = "static" , modifiers = "-bundle" ,
351
+ cfg( target_feature = "crt-static" ) ) ]
352
+ #[ link( name = "m" , kind = "static" , modifiers = "-bundle" ,
353
+ cfg( target_feature = "crt-static" ) ) ]
354
+ #[ link( name = "m" , cfg( not( target_feature = "crt-static" ) ) ) ]
355
+ #[ link( name = "c" , cfg( not( target_feature = "crt-static" ) ) ) ]
356
+ extern { }
349
357
} else if #[ cfg( any( target_os = "macos" ,
350
358
target_os = "ios" ,
351
359
target_os = "watchos" ,
You can’t perform that action at this time.
0 commit comments