mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
With single module, name the .o file after what -o provides. #1306
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user