File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2121use std:: collections:: HashMap ;
2222use std:: env;
2323use std:: ffi:: { OsString , OsStr } ;
24- use std:: fs;
25- use std:: process :: Command ;
24+ use std:: fs:: { self , File } ;
25+ use std:: io :: Read ;
2626use std:: path:: PathBuf ;
27+ use std:: process:: Command ;
2728
2829use build_helper:: output;
2930
@@ -234,4 +235,14 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
234235 if let Some ( ref s) = build. config . ccache {
235236 cmd_finder. must_have ( s) ;
236237 }
238+
239+ if build. config . channel == "stable" {
240+ let mut stage0 = String :: new ( ) ;
241+ t ! ( t!( File :: open( build. src. join( "src/stage0.txt" ) ) )
242+ . read_to_string( & mut stage0) ) ;
243+ if stage0. contains ( "\n dev:" ) {
244+ panic ! ( "bootstrapping from a dev compiler in a stable release, but \
245+ should only be bootstrapping from a released compiler!") ;
246+ }
247+ }
237248}
You can’t perform that action at this time.
0 commit comments