compiler: Improve the handling of unwind table levels.

The goal here is to support both levels of unwind tables (sync and async) in
zig cc and zig build. Previously, the LLVM backend always used async tables
while zig cc was partially influenced by whatever was Clang's default.
This commit is contained in:
Alex Rønne Petersen
2024-11-13 06:04:04 +01:00
parent 0b67463b92
commit 8af82621d7
16 changed files with 174 additions and 53 deletions

View File

@@ -110,6 +110,14 @@ const known_options = [_]KnownOpt{
.name = "fno-unwind-tables",
.ident = "no_unwind_tables",
},
.{
.name = "fasynchronous-unwind-tables",
.ident = "asynchronous_unwind_tables",
},
.{
.name = "fno-asynchronous-unwind-tables",
.ident = "no_asynchronous_unwind_tables",
},
.{
.name = "nolibc",
.ident = "nostdlib",