From c8e2f0faad925d7d5bcc6ebcb7b0c306c9e663e5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 13 Apr 2024 15:20:42 -0400 Subject: Rudimentary stack traces --- tomo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tomo.c') diff --git a/tomo.c b/tomo.c index 1713cc5d..834732e6 100644 --- a/tomo.c +++ b/tomo.c @@ -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; } -- cgit v1.2.3