diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig index 1baa6e8cad8a996b1705219bd5a25d514ce8090f..0650a2ae21602aa945b26735c6772bfa5aeb0561 100644 --- a/lib/std/zig/system.zig +++ b/lib/std/zig/system.zig @@ -960,12 +960,6 @@ fn detectAbiAndDynamicLinker(io: Io, cpu: Target.Cpu, os: Target.Os, query: Targ if (!native_target_has_ld or have_all_info or os_is_non_native or is_illumos or is_darwin) { return defaultAbiAndDynamicLinker(cpu, os, query); } - if (query.abi) |abi| { - if (abi.isMusl()) { - // musl implies static linking. - return defaultAbiAndDynamicLinker(cpu, os, query); - } - } // The current target's ABI cannot be relied on for this. For example, we may build the zig // compiler for target riscv64-linux-musl and provide a tarball for users to download. // A user could then run that zig compiler on riscv64-linux-gnu. This use case is well-defined