builder: make C compilation retrying more uniform
							parent
							
								
									3362d7ecbb
								
							
						
					
					
						commit
						77b3440e44
					
				|  | @ -636,10 +636,10 @@ fn (mut v Builder) cc() { | ||||||
| 		ccompiler_label := 'C ${os.file_name(ccompiler):3}' | 		ccompiler_label := 'C ${os.file_name(ccompiler):3}' | ||||||
| 		util.timing_start(ccompiler_label) | 		util.timing_start(ccompiler_label) | ||||||
| 		res := os.exec(cmd) or { | 		res := os.exec(cmd) or { | ||||||
| 			println('C compilation failed.') | 			os.Result{ | ||||||
| 			os.chdir(original_pwd) | 				exit_code: 111 | ||||||
| 			verror(err) | 				output: 'C compilation failed.\n$err' | ||||||
| 			return | 			} | ||||||
| 		} | 		} | ||||||
| 		util.timing_measure(ccompiler_label) | 		util.timing_measure(ccompiler_label) | ||||||
| 		if v.pref.show_c_output { | 		if v.pref.show_c_output { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue