aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-30 13:52:27 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-30 13:52:27 -0400
commitcdbf36b63c9250c132b1fafb46b7881b4a263217 (patch)
treebb794040a73e347bea38ec75f023e230c882edc2 /src
parenta80a83c49f733b7c9102e192199cde6e65bea871 (diff)
Bugfix for `use`ing ASM files and also for retranspiling headers
Diffstat (limited to 'src')
-rw-r--r--src/tomo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tomo.c b/src/tomo.c
index dbfb1fa5..255332f8 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -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;
}