aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-13 15:20:42 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-13 15:20:42 -0400
commitc8e2f0faad925d7d5bcc6ebcb7b0c306c9e663e5 (patch)
treed86f18dad96bb59a1d280d7b7a23e513f85e4758 /tomo.c
parentfab547ebc84a6f8913e1c5c7cd6b0f4598f5382c (diff)
Rudimentary stack traces
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c5
1 files changed, 3 insertions, 2 deletions
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;
}