File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -330,14 +330,6 @@ impl<'a> TestRunner<'a> {
330330 target_compiler. rustflags . extend ( rustflags_from_env ( "RUSTFLAGS" ) ) ;
331331 target_compiler. rustdocflags . extend ( rustflags_from_env ( "RUSTDOCFLAGS" ) ) ;
332332
333- // FIXME fix `#[linkage = "extern_weak"]` without this
334- if target_compiler. triple . contains ( "darwin" ) {
335- target_compiler. rustflags . extend ( [
336- "-Clink-arg=-undefined" . to_owned ( ) ,
337- "-Clink-arg=dynamic_lookup" . to_owned ( ) ,
338- ] ) ;
339- }
340-
341333 let jit_supported = use_unstable_features
342334 && is_native
343335 && target_compiler. triple . contains ( "x86_64" )
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ fn main() {
274274
275275 assert_eq ! ( ( ( |( ) | 42u8 ) as fn ( ( ) ) -> u8 ) ( ( ) ) , 42 ) ;
276276
277- #[ cfg( not( any( jit, windows) ) ) ]
277+ #[ cfg( not( any( jit, target_vendor = "apple" , windows) ) ) ]
278278 {
279279 extern "C" {
280280 #[ linkage = "extern_weak" ]
You can’t perform that action at this time.
0 commit comments