aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-13 06:04:04 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2024-12-11 00:10:15 +0100
commit8af82621d75f9f0d96ebf734f5ea862d06a5f1fa (patch)
treee004815ccdc1ae57557d69a2e42270edd81ca469 /lib/std/builtin.zig
parent0b67463b9285158d818d6cd196c5f2ba9961a05e (diff)
downloadzig-8af82621d75f9f0d96ebf734f5ea862d06a5f1fa.tar.gz
zig-8af82621d75f9f0d96ebf734f5ea862d06a5f1fa.zip
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.
Diffstat (limited to 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 5ddde66a0a..eda7f0ff4f 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -806,6 +806,14 @@ pub const LinkMode = enum {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
+pub const UnwindTables = enum {
+ none,
+ sync,
+ @"async",
+};
+
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
pub const WasiExecModel = enum {
command,
reactor,