diff --git a/code/build_lib.cpp b/code/build_lib.cpp index 1349c67..d5ad450 100644 --- a/code/build_lib.cpp +++ b/code/build_lib.cpp @@ -357,5 +357,6 @@ int main(int argc, char **argv) { SRC_InitCache(Perm, S8_Lit("build_file.cache")); int result = Main(); if (result == 0) SRC_SaveCache(); + return result; } #endif \ No newline at end of file diff --git a/code/build_main.cpp b/code/build_main.cpp index b477107..7470175 100644 --- a/code/build_main.cpp +++ b/code/build_main.cpp @@ -60,7 +60,7 @@ int main(int argument_count, char **arguments) { if (result != 0) { IO_Printf("FAILED compilation of the build file!\n"); - return result; + return 1; } time = OS_GetTime() - 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); if (result != 0) { printf("FAILED execution of the build file!\n"); - return result; + return 1; } } time = OS_GetTime() - time;