File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed 
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1942,6 +1942,17 @@ HELP: You can add it into `bootstrap.toml` in `rust.codegen-backends = [{name:?}
19421942                ) ; 
19431943                crate :: exit!( 1 ) ; 
19441944            } 
1945+ 
1946+             if  let  CodegenBackendKind :: Gcc  = codegen_backend
1947+                 && builder. config . rustc_debug_assertions 
1948+             { 
1949+                 eprintln ! ( 
1950+                     r#"WARNING: Running tests with the GCC codegen backend while rustc debug assertions are enabled. This might lead to test failures. 
1951+ Please disable assertions with `rust.debug-assertions = false`. 
1952+         "# 
1953+                 ) ; 
1954+             } 
1955+ 
19451956            // Tells compiletest that we want to use this codegen in particular and to override 
19461957            // the default one. 
19471958            cmd. arg ( "--override-codegen-backend" ) . arg ( codegen_backend. name ( ) ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments