This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 2 files changed +14
-10
lines changed
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -796,11 +796,7 @@ void Builder::Cleanup() {
796
796
}
797
797
}
798
798
799
- if (compiler_log_) {
800
- fprintf (compiler_log_, " #Done(%" PRId64 " )\n " , GetTimeMillis ());
801
- fclose (compiler_log_);
802
- compiler_log_ = NULL ;
803
- }
799
+ compiler_log_ = NULL ;
804
800
}
805
801
806
802
Node* Builder::AddTarget (const string& name, string* err) {
Original file line number Diff line number Diff line change @@ -1172,19 +1172,27 @@ int NinjaMain::RunBuild(int argc, char** argv) {
1172
1172
printf("ninja: build stopped: %s.\n", err.c_str());
1173
1173
#else
1174
1174
1175
- if (ShouldBeColorFul (false )){
1176
- printf (" \x1b [31m" " FAILED:" " \x1b [0m" " %s.\n " , err.c_str ());
1177
- } else {
1178
- printf (" FAILED: %s.\n " , err.c_str ());
1179
- }
1175
+ if (ShouldBeColorFul (false )) {
1176
+ printf (" \x1b [31m" " FAILED:" " \x1b [0m" " %s.\n " , err.c_str ());
1177
+ } else {
1178
+ printf (" FAILED: %s.\n " , err.c_str ());
1179
+ }
1180
+ fprintf (compiler_log_, " FAILED: %s.\n " , err.c_str ());
1180
1181
1181
1182
#endif
1183
+
1184
+ fprintf (compiler_log_, " #Done(%" PRId64 " )\n " , GetTimeMillis ());
1185
+ fclose (compiler_log_);
1186
+
1182
1187
if (err.find (" interrupted by user" ) != string::npos) {
1183
1188
return 2 ;
1184
1189
}
1185
1190
return 1 ;
1186
1191
}
1187
1192
1193
+ fprintf (compiler_log_, " #Done(%" PRId64 " )\n " , GetTimeMillis ());
1194
+ fclose (compiler_log_);
1195
+
1188
1196
return 0 ;
1189
1197
}
1190
1198
You can’t perform that action at this time.
0 commit comments