Fix cache, misc changes

This commit is contained in:
Krzosa Karol
2024-01-13 21:18:08 +01:00
parent 1b6d908b6b
commit c375cdf04f
12 changed files with 28 additions and 26 deletions

View File

@@ -80,10 +80,10 @@ SRC_CacheEntry *SRC_HashFile(S8_String file, char *parent_file) {
for (CL_Token token = CL_Next(&lexer); token.kind != CL_EOF; token = CL_Next(&lexer)) {
if (token.is_system_include) continue;
S8_String file_it = S8_Make(token.str, token.len);
S8_String file_it = S8_MakeFromChar(token.string_literal);
SRC_CacheEntry *cache = SRC_HashFile(file_it, resolved_file);
if (!cache) {
IO_Printf("Missing cache for: %.*s\n", S8_Expand(file_it));
// error was reported already IO_Printf("Missing cache for: %.*s\n", S8_Expand(file_it));
continue;
}

View File

@@ -47,7 +47,7 @@ MA_Arena PernamentArena;
MA_Arena *Perm = &PernamentArena;
Table<S8_String> CMDLine;
#include "cache.c"
#include "cache.cpp"
//
//

View File

@@ -1,5 +1,5 @@
#define BUILD_MAIN
#include "build_lib.cpp"
#include "library.cpp"
int main(int argument_count, char **arguments) {
OS_MakeDir(S8_Lit("build"));