Skip to content

Commit

Permalink
With single module, name the .o file after what -o provides. #1306
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Aug 6, 2024
1 parent 16510d2 commit d2988e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- Fixes to the socket functions.
- Improved output when pointer is out of range.
- Better error when casting to a distinct fails.
- With single module, name the .o file after what `-o` provides. #1306

### Stdlib changes

Expand Down
1 change: 1 addition & 0 deletions src/compiler/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void scratch_buffer_append_module(Module *module, bool is_export)

const char *module_create_object_file_name(Module *module)
{
if (active_target.single_module == SINGLE_MODULE_ON && active_target.name) return active_target.name;
scratch_buffer_clear();
char c;
const char *name = module->name->module;
Expand Down

0 comments on commit d2988e6

Please sign in to comment.