File tree 1 file changed +8
-6
lines changed
src/bootstrap/src/core/build_steps
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1846,19 +1846,21 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1846
1846
}
1847
1847
}
1848
1848
1849
+ // FIXME(136096): on macOS, we get linker warnings about duplicate `-lm` flags.
1850
+ // NOTE: `stage > 1` here because `test --stage 1 ui-fulldeps` is a hack that compiles
1851
+ // with stage 0, but links the tests against stage 1.
1852
+ // cfg(bootstrap) - remove only the `stage > 1` check, leave everything else.
1853
+ if suite == "ui-fulldeps" && compiler. stage > 1 && target. ends_with ( "darwin" ) {
1854
+ flags. push ( "-Alinker_messages" . into ( ) ) ;
1855
+ }
1856
+
1849
1857
let mut hostflags = flags. clone ( ) ;
1850
1858
hostflags. push ( format ! ( "-Lnative={}" , builder. test_helpers_out( compiler. host) . display( ) ) ) ;
1851
1859
hostflags. extend ( linker_flags ( builder, compiler. host , LldThreads :: No ) ) ;
1852
1860
1853
1861
let mut targetflags = flags;
1854
1862
targetflags. push ( format ! ( "-Lnative={}" , builder. test_helpers_out( target) . display( ) ) ) ;
1855
1863
1856
- // FIXME: on macOS, we get linker warnings about duplicate `-lm` flags. We should investigate why this happens.
1857
- if suite == "ui-fulldeps" && target. ends_with ( "darwin" ) {
1858
- hostflags. push ( "-Alinker_messages" . into ( ) ) ;
1859
- targetflags. push ( "-Alinker_messages" . into ( ) ) ;
1860
- }
1861
-
1862
1864
for flag in hostflags {
1863
1865
cmd. arg ( "--host-rustcflags" ) . arg ( flag) ;
1864
1866
}
You can’t perform that action at this time.
0 commit comments