| ... | ... | @@ -3824,6 +3824,14 @@ fn createModule( |
| 3824 | 3824 | for (create_module.cli_link_inputs.items) |cli_link_input| switch (cli_link_input) { |
| 3825 | 3825 | .name_query => |nq| { |
| 3826 | 3826 | const lib_name = nq.name; |
| 3827 | |
| 3828 | if (target.os.tag == .wasi) { |
| 3829 | if (wasi_libc.getEmulatedLibCrtFile(lib_name)) |crt_file| { |
| 3830 | try create_module.wasi_emulated_libs.append(arena, crt_file); |
| 3831 | continue; |
| 3832 | } |
| 3833 | } |
| 3834 | |
| 3827 | 3835 | if (std.zig.target.isLibCLibName(target, lib_name)) { |
| 3828 | 3836 | create_module.opts.link_libc = true; |
| 3829 | 3837 | continue; |
| ... | ... | @@ -3832,6 +3840,7 @@ fn createModule( |
| 3832 | 3840 | create_module.opts.link_libcpp = true; |
| 3833 | 3841 | continue; |
| 3834 | 3842 | } |
| 3843 | |
| 3835 | 3844 | switch (target_util.classifyCompilerRtLibName(lib_name)) { |
| 3836 | 3845 | .none => {}, |
| 3837 | 3846 | .only_libunwind, .both => { |
| ... | ... | @@ -3857,12 +3866,6 @@ fn createModule( |
| 3857 | 3866 | fatal("cannot use absolute path as a system library: {s}", .{lib_name}); |
| 3858 | 3867 | } |
| 3859 | 3868 | |
| 3860 | | if (target.os.tag == .wasi) { |
| 3861 | | if (wasi_libc.getEmulatedLibCrtFile(lib_name)) |crt_file| { |
| 3862 | | try create_module.wasi_emulated_libs.append(arena, crt_file); |
| 3863 | | continue; |
| 3864 | | } |
| 3865 | | } |
| 3866 | 3869 | unresolved_link_inputs.appendAssumeCapacity(cli_link_input); |
| 3867 | 3870 | any_name_queries_remaining = true; |
| 3868 | 3871 | }, |