| author | |
| committer | |
| log | db70b909a0c29ff50984ce63535a6ba9e2ca4e07 |
| tree | 027022eadaf524deb7158c0f432d4abe4779a780 |
| parent | 5b00dee0c27ae5a8547d6a4063331302cdc7b0be |
Make the stage 1 compiler exit with a non-zero status code
when `zig build --init` cannot create a new build.zig file.1 files changed, 2 insertions(+), 1 deletions(-)
src/main.cpp+2-1| ... | ... | @@ -452,10 +452,11 @@ int main(int argc, char **argv) { |
| 452 | 452 | |
| 453 | 453 | if ((err = os_copy_file(build_template_path, &build_file_abs))) { |
| 454 | 454 | fprintf(stderr, "Unable to write build.zig template: %s\n", err_str(err)); |
| 455 | return EXIT_FAILURE; | |
| 455 | 456 | } else { |
| 456 | 457 | fprintf(stderr, "Wrote build.zig template\n"); |
| 458 | return EXIT_SUCCESS; | |
| 457 | 459 | } |
| 458 | return EXIT_SUCCESS; | |
| 459 | 460 | } |
| 460 | 461 | |
| 461 | 462 | fprintf(stderr, |