| ... | @@ -850,7 +850,7 @@ fn buildOutputType( | ... | @@ -850,7 +850,7 @@ fn buildOutputType( |
| 850 | var disable_c_depfile = false; | 850 | var disable_c_depfile = false; |
| 851 | var linker_sort_section: ?link.File.Lld.Elf.SortSection = null; | 851 | var linker_sort_section: ?link.File.Lld.Elf.SortSection = null; |
| 852 | var linker_gc_sections: ?bool = null; | 852 | var linker_gc_sections: ?bool = null; |
| 853 | var linker_compress_debug_sections: ?link.File.Lld.Elf.CompressDebugSections = null; | 853 | var linker_compress_debug_sections: ?std.zig.CompressDebugSections = null; |
| 854 | var linker_allow_shlib_undefined: ?bool = null; | 854 | var linker_allow_shlib_undefined: ?bool = null; |
| 855 | var allow_so_scripts: bool = false; | 855 | var allow_so_scripts: bool = false; |
| 856 | var linker_bind_global_refs_locally: ?bool = null; | 856 | var linker_bind_global_refs_locally: ?bool = null; |
| ... | @@ -1167,11 +1167,11 @@ fn buildOutputType( | ... | @@ -1167,11 +1167,11 @@ fn buildOutputType( |
| 1167 | } else if (mem.eql(u8, arg, "-install_name")) { | 1167 | } else if (mem.eql(u8, arg, "-install_name")) { |
| 1168 | install_name = args_iter.nextOrFatal(); | 1168 | install_name = args_iter.nextOrFatal(); |
| 1169 | } else if (mem.cutPrefix(u8, arg, "--compress-debug-sections=")) |param| { | 1169 | } else if (mem.cutPrefix(u8, arg, "--compress-debug-sections=")) |param| { |
| 1170 | linker_compress_debug_sections = std.meta.stringToEnum(link.File.Lld.Elf.CompressDebugSections, param) orelse { | 1170 | linker_compress_debug_sections = std.meta.stringToEnum(std.zig.CompressDebugSections, param) orelse { |
| 1171 | fatal("expected --compress-debug-sections=[none|zlib|zstd], found '{s}'", .{param}); | 1171 | fatal("expected --compress-debug-sections=[none|zlib|zstd], found '{s}'", .{param}); |
| 1172 | }; | 1172 | }; |
| 1173 | } else if (mem.eql(u8, arg, "--compress-debug-sections")) { | 1173 | } else if (mem.eql(u8, arg, "--compress-debug-sections")) { |
| 1174 | linker_compress_debug_sections = link.File.Lld.Elf.CompressDebugSections.zlib; | 1174 | linker_compress_debug_sections = .zlib; |
| 1175 | } else if (mem.eql(u8, arg, "-pagezero_size")) { | 1175 | } else if (mem.eql(u8, arg, "-pagezero_size")) { |
| 1176 | const next_arg = args_iter.nextOrFatal(); | 1176 | const next_arg = args_iter.nextOrFatal(); |
| 1177 | pagezero_size = std.fmt.parseUnsigned(u64, eatIntPrefix(next_arg, 16), 16) catch |err| { | 1177 | pagezero_size = std.fmt.parseUnsigned(u64, eatIntPrefix(next_arg, 16), 16) catch |err| { |
| ... | @@ -2335,7 +2335,7 @@ fn buildOutputType( | ... | @@ -2335,7 +2335,7 @@ fn buildOutputType( |
| 2335 | if (it.only_arg.len == 0) { | 2335 | if (it.only_arg.len == 0) { |
| 2336 | linker_compress_debug_sections = .zlib; | 2336 | linker_compress_debug_sections = .zlib; |
| 2337 | } else { | 2337 | } else { |
| 2338 | linker_compress_debug_sections = std.meta.stringToEnum(link.File.Lld.Elf.CompressDebugSections, it.only_arg) orelse { | 2338 | linker_compress_debug_sections = std.meta.stringToEnum(std.zig.CompressDebugSections, it.only_arg) orelse { |
| 2339 | fatal("expected [none|zlib|zstd] after --compress-debug-sections, found '{s}'", .{it.only_arg}); | 2339 | fatal("expected [none|zlib|zstd] after --compress-debug-sections, found '{s}'", .{it.only_arg}); |
| 2340 | }; | 2340 | }; |
| 2341 | } | 2341 | } |
| ... | @@ -2523,7 +2523,7 @@ fn buildOutputType( | ... | @@ -2523,7 +2523,7 @@ fn buildOutputType( |
| 2523 | try linker_export_symbol_names.append(arena, linker_args_it.nextOrFatal()); | 2523 | try linker_export_symbol_names.append(arena, linker_args_it.nextOrFatal()); |
| 2524 | } else if (mem.eql(u8, arg, "--compress-debug-sections")) { | 2524 | } else if (mem.eql(u8, arg, "--compress-debug-sections")) { |
| 2525 | const arg1 = linker_args_it.nextOrFatal(); | 2525 | const arg1 = linker_args_it.nextOrFatal(); |
| 2526 | linker_compress_debug_sections = std.meta.stringToEnum(link.File.Lld.Elf.CompressDebugSections, arg1) orelse { | 2526 | linker_compress_debug_sections = std.meta.stringToEnum(std.zig.CompressDebugSections, arg1) orelse { |
| 2527 | fatal("expected [none|zlib|zstd] after --compress-debug-sections, found '{s}'", .{arg1}); | 2527 | fatal("expected [none|zlib|zstd] after --compress-debug-sections, found '{s}'", .{arg1}); |
| 2528 | }; | 2528 | }; |
| 2529 | } else if (mem.cutPrefix(u8, arg, "-z")) |z_rest| { | 2529 | } else if (mem.cutPrefix(u8, arg, "-z")) |z_rest| { |