With single module, name the .o file after what -o provides. #1306

This commit is contained in:
Christoffer Lerno
2024-08-07 01:35:04 +02:00
parent 16510d2400
commit d2988e6a88
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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;