fix: escape object files with single quotes during linking

This commit is contained in:
xenobas
2025-06-20 19:40:24 +01:00
parent d9e08bc5d8
commit 0ed54d3557
+2 -2
View File
@@ -704,12 +704,12 @@ try_cross_linking:;
return result; return result;
} }
object_files = gb_string_append_fmt(object_files, "\"%.*s\" ", LIT(android_glue_static_lib)); object_files = gb_string_append_fmt(object_files, "\'%.*s\' ", LIT(android_glue_static_lib));
} }
for (String object_path : gen->output_object_paths) { for (String object_path : gen->output_object_paths) {
object_files = gb_string_append_fmt(object_files, "\"%.*s\" ", LIT(object_path)); object_files = gb_string_append_fmt(object_files, "\'%.*s\' ", LIT(object_path));
} }
gbString link_settings = gb_string_make_reserve(heap_allocator(), 32); gbString link_settings = gb_string_make_reserve(heap_allocator(), 32);