mirror of
https://github.com/ziglang/zig.git
synced 2026-02-06 06:27:05 +00:00
target_os_requires_libc implies dynamic linking
This commit is contained in:
parent
5a4e8c779a
commit
99520c4e69
@ -8375,6 +8375,8 @@ static bool detect_dynamic_link(CodeGen *g) {
|
||||
return true;
|
||||
if (g->zig_target->os == OsFreestanding)
|
||||
return false;
|
||||
if (target_os_requires_libc(g->zig_target->os))
|
||||
return true;
|
||||
if (g->libc_link_lib != nullptr && target_is_glibc(g->zig_target))
|
||||
return true;
|
||||
// If there are no dynamic libraries then we can disable dynamic linking.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user