This commit is contained in:
Krzosa Karol
2024-01-08 07:16:03 +01:00
parent be55dae0d0
commit 9e2e53ab35
2 changed files with 3 additions and 2 deletions

View File

@@ -357,5 +357,6 @@ int main(int argc, char **argv) {
SRC_InitCache(Perm, S8_Lit("build_file.cache")); SRC_InitCache(Perm, S8_Lit("build_file.cache"));
int result = Main(); int result = Main();
if (result == 0) SRC_SaveCache(); if (result == 0) SRC_SaveCache();
return result;
} }
#endif #endif

View File

@@ -60,7 +60,7 @@ int main(int argument_count, char **arguments) {
if (result != 0) { if (result != 0) {
IO_Printf("FAILED compilation of the build file!\n"); IO_Printf("FAILED compilation of the build file!\n");
return result; return 1;
} }
time = OS_GetTime() - time; time = OS_GetTime() - time;
IO_Printf("TIME Build file compilation: %f\n", time); IO_Printf("TIME Build file compilation: %f\n", time);
@@ -72,7 +72,7 @@ int main(int argument_count, char **arguments) {
int result = OS_SystemF(IF_WINDOWS_ELSE("", "./") "%Q %Q", exe_name, cmdline_args); int result = OS_SystemF(IF_WINDOWS_ELSE("", "./") "%Q %Q", exe_name, cmdline_args);
if (result != 0) { if (result != 0) {
printf("FAILED execution of the build file!\n"); printf("FAILED execution of the build file!\n");
return result; return 1;
} }
} }
time = OS_GetTime() - time; time = OS_GetTime() - time;