diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-25 14:58:04 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-25 14:58:44 +0100 |
| commit | 46a1a158617da904fa381b8fcba8d975c30e4e0a (patch) | |
| tree | f82515423ccbfdb6b888e0ec15bac6c0cf6d8c69 /src/Compilation.zig | |
| parent | 1e8b82f6b4852211b76a54da14fc8cf0351ada09 (diff) | |
| download | zig-46a1a158617da904fa381b8fcba8d975c30e4e0a.tar.gz zig-46a1a158617da904fa381b8fcba8d975c30e4e0a.zip | |
Compilation: Remove the _tls_index hack for MinGW.
No longer needed since we disable LTO for mingw32.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 4a57fdcc9d..75b7f5e602 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1881,18 +1881,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil comp.remaining_prelink_tasks += 1; } - if (target.isMinGW() and comp.config.any_non_single_threaded) { - // LLD might drop some symbols as unused during LTO and GCing, therefore, - // we force mark them for resolution here. - - const tls_index_sym = switch (target.cpu.arch) { - .x86 => "__tls_index", - else => "_tls_index", - }; - - try comp.force_undefined_symbols.put(comp.gpa, tls_index_sym, {}); - } - if (comp.include_compiler_rt and capable_of_building_compiler_rt) { if (is_exe_or_dyn_lib) { log.debug("queuing a job to build compiler_rt_lib", .{}); |
