File tree Expand file tree Collapse file tree
tests/run-make/macos-deployment-target-warning Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- //@ only-apple
21//! Tests that deployment target linker warnings are shown as `linker-info`, not `linker-messages`
32
3+ //@ only-macos
4+
45use run_make_support:: external_deps:: c_cxx_compiler:: cc;
56use run_make_support:: external_deps:: llvm:: llvm_ar;
6- use run_make_support:: { bare_rustc , diff} ;
7+ use run_make_support:: { rustc , diff} ;
78
89fn main ( ) {
9- let cwd = std:: env:: current_dir ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_owned ( ) ;
10-
1110 cc ( ) . arg ( "-c" ) . arg ( "-mmacosx-version-min=15.5" ) . output ( "foo.o" ) . input ( "foo.c" ) . run ( ) ;
1211 llvm_ar ( ) . obj_to_ar ( ) . output_input ( "libfoo.a" , "foo.o" ) . run ( ) ;
1312
14- let warnings = bare_rustc ( )
15- . arg ( "-L" )
16- . arg ( format ! ( "native={cwd}" ) )
13+ let warnings = rustc ( )
1714 . arg ( "-lstatic=foo" )
1815 . link_arg ( "-mmacosx-version-min=11.2" )
1916 . input ( "main.rs" )
You can’t perform that action at this time.
0 commit comments