diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-22 13:47:30 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-22 13:47:30 -0400 |
| commit | ddee8692109b17750e1573ca7773c02726ac8f2b (patch) | |
| tree | b9f9ca074bd0ab34a12c8d545f00608c44cd5662 | |
| parent | f21fc700bb5e37a653142b0ecd142f1ae3132c5c (diff) | |
Stop if compilation error occurs
| -rw-r--r-- | tomo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -86,7 +86,8 @@ int main(int argc, char *argv[]) CORD object_files_cord = CORD_EMPTY; for (int64_t i = 0; i < file_deps.length; i++) { const char *dep = *(char**)(file_deps.data + i*file_deps.stride); - compile_object_file(dep, false); + int compile_status = compile_object_file(dep, false); + if (compile_status != 0) return compile_status; object_files_cord = object_files_cord ? CORD_all(object_files_cord, " ", dep, ".o") : CORD_cat(dep, ".o"); } |
