Adds new flag for linker to know if it should link the system library or not

This commit is contained in:
Platin21
2024-01-02 20:55:15 +01:00
parent 778bbee17c
commit da977cf1e6
3 changed files with 25 additions and 1 deletions

View File

@@ -726,6 +726,10 @@ gb_internal bool cg_generate_code(Checker *c, LinkerData *linker_data) {
linker_data_init(linker_data, info, c->parser->init_fullpath);
#if defined(GB_SYSTEM_OSX)
linker_enable_system_library_linking(linker_data);
#endif
cg_global_arena_init();
cgModule *m = cg_module_create(c);