diff options
| author | Chris Heyes <rumcode@icloud.com> | 2018-10-16 23:56:19 +0100 |
|---|---|---|
| committer | Chris Heyes <rumcode@icloud.com> | 2018-10-16 23:56:19 +0100 |
| commit | ae02e9c34aa08b642fd6ca5465f988f8f1d98c60 (patch) | |
| tree | 18f5437c91861d5610c023641612449dd31c19a1 /src/ir.cpp | |
| parent | 139fa55c279ed7a244be26d9103ba3b37a2b88b6 (diff) | |
Use name of source file as output_name
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 7ceda6c10..29cc9247c 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7788,8 +7788,8 @@ bool ir_gen_init(irGen *s, Checker *c) { String init_fullpath = c->parser->init_fullpath; if (build_context.out_filepath.len == 0) { - // s->output_name = filename_from_path(init_fullpath); - s->output_name = str_lit("main"); + s->output_name = remove_directory_from_path(init_fullpath); + s->output_name = remove_extension_from_path(s->output_name); s->output_base = s->output_name; } else { s->output_name = build_context.out_filepath; |