| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -123,12 +123,16 @@ if not prebuilt: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      compile_output += r | 
					 | 
					 | 
					 | 
					      compile_output += r | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      if retry: | 
					 | 
					 | 
					 | 
					      if retry: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if not os.getenv("CI"): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          print("scons build failed, cleaning in") | 
					 | 
					 | 
					 | 
					          print("scons build failed, cleaning in") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          for i in range(3, -1, -1): | 
					 | 
					 | 
					 | 
					          for i in range(3, -1, -1): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            print("....%d" % i) | 
					 | 
					 | 
					 | 
					            print("....%d" % i) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            time.sleep(1) | 
					 | 
					 | 
					 | 
					            time.sleep(1) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          subprocess.check_call(["scons", "-c"], cwd=BASEDIR, env=env) | 
					 | 
					 | 
					 | 
					          subprocess.check_call(["scons", "-c"], cwd=BASEDIR, env=env) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          shutil.rmtree("/tmp/scons_cache") | 
					 | 
					 | 
					 | 
					          shutil.rmtree("/tmp/scons_cache") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          print("scons build failed after retry") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          sys.exit(1) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      else: | 
					 | 
					 | 
					 | 
					      else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        # Build failed log errors | 
					 | 
					 | 
					 | 
					        # Build failed log errors | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        errors = [line.decode('utf8', 'replace') for line in compile_output | 
					 | 
					 | 
					 | 
					        errors = [line.decode('utf8', 'replace') for line in compile_output | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |