Bugfix for useing ASM files and also for retranspiling headers

This commit is contained in:
Bruce Hill 2025-03-30 13:52:27 -04:00
parent a80a83c49f
commit cdbf36b63c

View File

@ -486,7 +486,7 @@ void compile_files(env_t *env, Array_t to_compile, Array_t *object_files, Array_
Path_t filename;
staleness_t staleness;
} *entry = (dependency_files.entries.data + i*dependency_files.entries.stride);
if (entry->staleness.h) {
if (entry->staleness.h || clean_build) {
transpile_header(env, entry->filename);
entry->staleness.o = true;
}
@ -601,7 +601,7 @@ void build_file_dependency_graph(Path_t path, Table_t *to_compile, Table_t *to_l
break;
}
case USE_ASM: {
Text_t linker_text = Path$as_text(&use->path, false, &Path$info);
Text_t linker_text = Text$from_str(use->path);
Table$set(to_link, &linker_text, ((Bool_t[1]){1}), Table$info(&Text$info, &Bool$info));
break;
}