authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-25 14:58:04+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-25 14:58:44+01:00
log46a1a158617da904fa381b8fcba8d975c30e4e0a
treef82515423ccbfdb6b888e0ec15bac6c0cf6d8c69
parent1e8b82f6b4852211b76a54da14fc8cf0351ada09
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: Remove the _tls_index hack for MinGW.

No longer needed since we disable LTO for mingw32.

1 files changed, 0 insertions(+), 12 deletions(-)

src/Compilation.zig-12
...@@ -1881,18 +1881,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil...@@ -1881,18 +1881,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
1881 comp.remaining_prelink_tasks += 1;1881 comp.remaining_prelink_tasks += 1;
1882 }1882 }
18831883
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 if (comp.include_compiler_rt and capable_of_building_compiler_rt) {1884 if (comp.include_compiler_rt and capable_of_building_compiler_rt) {
1897 if (is_exe_or_dyn_lib) {1885 if (is_exe_or_dyn_lib) {
1898 log.debug("queuing a job to build compiler_rt_lib", .{});1886 log.debug("queuing a job to build compiler_rt_lib", .{});