diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-13 15:20:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-13 15:20:42 -0400 |
| commit | c8e2f0faad925d7d5bcc6ebcb7b0c306c9e663e5 (patch) | |
| tree | d86f18dad96bb59a1d280d7b7a23e513f85e4758 /tomo.c | |
| parent | fab547ebc84a6f8913e1c5c7cd6b0f4598f5382c (diff) | |
Rudimentary stack traces
Diffstat (limited to 'tomo.c')
| -rw-r--r-- | tomo.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -84,7 +84,8 @@ int main(int argc, char *argv[]) cconfig = getenv("CCONFIG"); if (!cconfig) - cconfig = "-std=c11 -fdollars-in-identifiers -fsanitize=signed-integer-overflow -fno-sanitize-recover -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE"; + cconfig = "-std=c11 -fdollars-in-identifiers -fsanitize=signed-integer-overflow -fno-sanitize-recover" + " -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE"; const char *optimization = getenv("O"); if (!optimization || !optimization[0]) optimization = "-O1"; @@ -337,7 +338,7 @@ int compile_executable(const char *filename, const char *object_files) int status = pclose(runner); if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { if (verbose) - printf("Compiled executable: %s\n", filename); + printf("Compiled executable: %s\n", bin_name); } return WIFEXITED(status) ? WEXITSTATUS(status) : EXIT_FAILURE; } |
