diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-21 13:35:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-21 13:35:41 -0400 |
| commit | 80a7472545ba39cae38ee51012cdc47d20d385a9 (patch) | |
| tree | 02a8cbff349536f77f7d7cd5372ab732d4631d39 | |
| parent | 4592e95fa937e5e8ef8343053b9d5accb2aa5d56 (diff) | |
Force retranspile target file
| -rw-r--r-- | tomo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,9 +78,9 @@ int main(int argc, char *argv[]) cc = getenv("CC"); if (!cc) cc = "tcc"; - if (mode == MODE_TRANSPILE) { - return transpile(filename, true); - } + int transpile_status = transpile(filename, true); + if (mode == MODE_TRANSPILE || transpile_status != 0) + return transpile_status; array_t file_deps = get_file_dependencies(filename); CORD object_files_cord = CORD_EMPTY; |
