@@ -1624,17 +1624,18 @@ impl Step for Sysroot {
1624
1624
let sysroot_lib_rustlib_src_rust = sysroot_lib_rustlib_src. join ( "rust" ) ;
1625
1625
if let Err ( e) = symlink_dir ( & builder. config , & builder. src , & sysroot_lib_rustlib_src_rust) {
1626
1626
eprintln ! (
1627
- "WARNING : creating symbolic link `{}` to `{}` failed with {}" ,
1627
+ "ERROR : creating symbolic link `{}` to `{}` failed with {}" ,
1628
1628
sysroot_lib_rustlib_src_rust. display( ) ,
1629
1629
builder. src. display( ) ,
1630
1630
e,
1631
1631
) ;
1632
1632
if builder. config . rust_remap_debuginfo {
1633
1633
eprintln ! (
1634
- "WARNING : some `tests/ui` tests will fail when lacking `{}`" ,
1634
+ "ERROR : some `tests/ui` tests will fail when lacking `{}`" ,
1635
1635
sysroot_lib_rustlib_src_rust. display( ) ,
1636
1636
) ;
1637
1637
}
1638
+ build_helper:: exit!( 1 ) ;
1638
1639
}
1639
1640
1640
1641
// Unlike rust-src component, we have to handle rustc-src a bit differently.
@@ -1654,11 +1655,13 @@ impl Step for Sysroot {
1654
1655
symlink_dir ( & builder. config , & builder. src , & sysroot_lib_rustlib_rustcsrc_rust)
1655
1656
{
1656
1657
eprintln ! (
1657
- "WARNING : creating symbolic link `{}` to `{}` failed with {}",
1658
+ "ERROR : creating symbolic link `{}` to `{}` failed with {}",
1658
1659
sysroot_lib_rustlib_rustcsrc_rust. display( ) ,
1659
1660
builder. src. display( ) ,
1660
1661
e,
1661
1662
) ;
1663
+ build_helper:: exit!( 1 ) ;
1664
+ }
1662
1665
}
1663
1666
1664
1667
sysroot
0 commit comments