| author | |
| committer | |
| log | 99520c4e6936b69e7489262bc35a70300366d395 |
| tree | 0b7636cd90657be10b8e023c90e52164861c2110 |
| parent | 5a4e8c779a713d7b07cec262b07afd6883684c98 |
| signature |
1 files changed, 2 insertions(+), 0 deletions(-)
src/codegen.cpp+2| ... | ... | @@ -8375,6 +8375,8 @@ static bool detect_dynamic_link(CodeGen *g) { |
| 8375 | 8375 | return true; |
| 8376 | 8376 | if (g->zig_target->os == OsFreestanding) |
| 8377 | 8377 | return false; |
| 8378 | if (target_os_requires_libc(g->zig_target->os)) | |
| 8379 | return true; | |
| 8378 | 8380 | if (g->libc_link_lib != nullptr && target_is_glibc(g->zig_target)) |
| 8379 | 8381 | return true; |
| 8380 | 8382 | // If there are no dynamic libraries then we can disable dynamic linking. |