diff options
| author | Veikka Tuominen <git@vexu.eu> | 2025-07-28 14:37:57 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-09-24 20:01:18 -0700 |
| commit | e7a622fb3331987c2b2128fb2657a5dea1b8aa33 (patch) | |
| tree | 2cf7543818aaaf64bf969fddac93416580d26808 /lib/compiler/aro/backend/CodeGenOptions.zig | |
| parent | e8e8d7e5c8eee5fe29add5aac0c07bf08a2debad (diff) | |
| download | zig-e7a622fb3331987c2b2128fb2657a5dea1b8aa33.tar.gz zig-e7a622fb3331987c2b2128fb2657a5dea1b8aa33.zip | |
update aro and translate-c sources
Diffstat (limited to 'lib/compiler/aro/backend/CodeGenOptions.zig')
| -rw-r--r-- | lib/compiler/aro/backend/CodeGenOptions.zig | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/compiler/aro/backend/CodeGenOptions.zig b/lib/compiler/aro/backend/CodeGenOptions.zig index afa5944890..304cc46951 100644 --- a/lib/compiler/aro/backend/CodeGenOptions.zig +++ b/lib/compiler/aro/backend/CodeGenOptions.zig @@ -11,7 +11,22 @@ pic_level: PicLevel, is_pie: bool, optimization_level: OptimizationLevel, /// Generate debug information -debug: bool, +debug: DebugFormat, +dwarf_version: DwarfVersion, + +pub const DebugFormat = union(enum) { + strip, + dwarf: std.dwarf.Format, + code_view, +}; + +pub const DwarfVersion = enum(u3) { + @"0" = 0, + @"2" = 2, + @"3" = 3, + @"4" = 4, + @"5" = 5, +}; pub const PicLevel = enum(u8) { /// Do not generate position-independent code @@ -60,5 +75,6 @@ pub const default: @This() = .{ .pic_level = .none, .is_pie = false, .optimization_level = .@"0", - .debug = false, + .debug = .strip, + .dwarf_version = .@"0", }; |
