| ... | ... | @@ -1881,18 +1881,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1881 | 1881 | comp.remaining_prelink_tasks += 1; |
| 1882 | 1882 | } |
| 1883 | 1883 | |
| 1884 | | if (target.isMinGW() and comp.config.any_non_single_threaded) { |
| 1885 | | // LLD might drop some symbols as unused during LTO and GCing, therefore, |
| 1886 | | // we force mark them for resolution here. |
| 1887 | | |
| 1888 | | const tls_index_sym = switch (target.cpu.arch) { |
| 1889 | | .x86 => "__tls_index", |
| 1890 | | else => "_tls_index", |
| 1891 | | }; |
| 1892 | | |
| 1893 | | try comp.force_undefined_symbols.put(comp.gpa, tls_index_sym, {}); |
| 1894 | | } |
| 1895 | | |
| 1896 | 1884 | if (comp.include_compiler_rt and capable_of_building_compiler_rt) { |
| 1897 | 1885 | if (is_exe_or_dyn_lib) { |
| 1898 | 1886 | log.debug("queuing a job to build compiler_rt_lib", .{}); |