mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix object name generation
This commit is contained in:
@@ -2591,8 +2591,7 @@ gb_internal String lb_filepath_obj_for_module(lbModule *m) {
|
|||||||
path = gb_string_appendc(path, "/");
|
path = gb_string_appendc(path, "/");
|
||||||
path = gb_string_append_length(path, name.text, name.len);
|
path = gb_string_append_length(path, name.text, name.len);
|
||||||
|
|
||||||
{
|
if (USE_SEPARATE_MODULES) {
|
||||||
|
|
||||||
GB_ASSERT(m->module_name != nullptr);
|
GB_ASSERT(m->module_name != nullptr);
|
||||||
String s = make_string_c(m->module_name);
|
String s = make_string_c(m->module_name);
|
||||||
String prefix = str_lit("odin_package");
|
String prefix = str_lit("odin_package");
|
||||||
@@ -2646,6 +2645,8 @@ gb_internal String lb_filepath_obj_for_module(lbModule *m) {
|
|||||||
|
|
||||||
path = gb_string_append_length(path, ext.text, ext.len);
|
path = gb_string_append_length(path, ext.text, ext.len);
|
||||||
|
|
||||||
|
gb_printf_err("%s\n", path);
|
||||||
|
|
||||||
return make_string(cast(u8 *)path, gb_string_length(path));
|
return make_string(cast(u8 *)path, gb_string_length(path));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user