diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-01-02 21:35:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 21:35:41 +0100 |
| commit | cb1c10ce83b9a51244ad50dc7a8beb4f3271ae09 (patch) | |
| tree | dcbd95a129f9badfb54b7cc1e15a7e4d5cb270f9 /src/llvm_backend_general.cpp | |
| parent | ee97c5958f9c39730652bd7365b106e4cfbd7c87 (diff) | |
| parent | 37c2e9bec39be9f5e38baaa9648e9f4c357db7f3 (diff) | |
Merge pull request #3067 from Platin21/fix/macos-no-duplicated-linkage
Fix/macos no duplicated linkage
Diffstat (limited to 'src/llvm_backend_general.cpp')
| -rw-r--r-- | src/llvm_backend_general.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index c149ec853..54327cc54 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -107,6 +107,10 @@ gb_internal bool lb_init_generator(lbGenerator *gen, Checker *c) { String init_fullpath = c->parser->init_fullpath; linker_data_init(gen, &c->info, init_fullpath); + #if defined(GB_SYSTEM_OSX) && (LLVM_VERSION_MAJOR < 14) + linker_enable_system_library_linking(gen); + #endif + gen->info = &c->info; map_init(&gen->modules, gen->info->packages.count*2); |