File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 21
21
use std:: collections:: HashMap ;
22
22
use std:: env;
23
23
use std:: ffi:: { OsString , OsStr } ;
24
- use std:: fs;
25
- use std:: process :: Command ;
24
+ use std:: fs:: { self , File } ;
25
+ use std:: io :: Read ;
26
26
use std:: path:: PathBuf ;
27
+ use std:: process:: Command ;
27
28
28
29
use build_helper:: output;
29
30
@@ -234,4 +235,14 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
234
235
if let Some ( ref s) = build. config . ccache {
235
236
cmd_finder. must_have ( s) ;
236
237
}
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
+ }
237
248
}
You can’t perform that action at this time.
0 commit comments