Remove ' from __odin_entry_point

This commit is contained in:
gingerBill
2026-09-02 12:49:40 +01:00
parent 780d59cce6
commit 085af86dac

View File

@@ -789,12 +789,12 @@ try_cross_linking:;
// by the compiler frontend are still needed and most of the command
// line arguments prepared previously are incompatible with ld.
if (build_context.metrics.os == TargetOs_darwin) {
link_settings = gb_string_appendc(link_settings, "-Wl,-init,'__odin_entry_point' ");
link_settings = gb_string_appendc(link_settings, "-Wl,-init,__odin_entry_point ");
// NOTE(weshardee): __odin_exit_point should also be added, but -fini
// does not exist on MacOS
} else {
link_settings = gb_string_appendc(link_settings, "-Wl,-init,'_odin_entry_point' ");
link_settings = gb_string_appendc(link_settings, "-Wl,-fini,'_odin_exit_point' ");
link_settings = gb_string_appendc(link_settings, "-Wl,-init,_odin_entry_point ");
link_settings = gb_string_appendc(link_settings, "-Wl,-fini,_odin_exit_point ");
}
} else if (is_android) {
// Always shared even in android!