Fix cache saving on error in build system

This commit is contained in:
Krzosa Karol
2024-02-16 07:39:33 +01:00
parent c3c5922017
commit 2abd8870cb
3 changed files with 4 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ int main(int argument_count, char **arguments) {
}
}
SRC_CacheScope("build_tool.cache");
SRC_InitCache(Perm, "build_tool.cache");
S8_String name_no_ext = S8_GetNameNoExt(build_file);
S8_String exe_name = S8_Format(Perm, "%.*s.exe", S8_Expand(name_no_ext));
@@ -93,6 +93,8 @@ int main(int argument_count, char **arguments) {
return 1;
}
}
SRC_SaveCache();
time = OS_GetTime() - time;
IO_Printf("TIME total build file execution: %f\n", time);
}