diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 11:38:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 13:39:16 -0700 |
| commit | aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2 (patch) | |
| tree | 4ddab249d8aabafb74221d2d96812b554eedfd39 /src/target.zig | |
| parent | a59c35cbf86e0266d5074ce219feef8436e45268 (diff) | |
| download | zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.tar.gz zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.zip | |
zig fmt
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/target.zig b/src/target.zig index 7852dda7a4..8c33a26939 100644 --- a/src/target.zig +++ b/src/target.zig @@ -483,12 +483,12 @@ pub fn clangSupportsNoImplicitFloatArg(target: *const std.Target) bool { pub fn defaultUnwindTables(target: *const std.Target, libunwind: bool, libtsan: bool) std.builtin.UnwindTables { if (target.os.tag == .windows) { // The old 32-bit x86 variant of SEH doesn't use tables. - return if (target.cpu.arch != .x86) .@"async" else .none; + return if (target.cpu.arch != .x86) .async else .none; } - if (target.os.tag.isDarwin()) return .@"async"; - if (libunwind) return .@"async"; - if (libtsan) return .@"async"; - if (std.debug.Dwarf.abi.supportsUnwinding(target)) return .@"async"; + if (target.os.tag.isDarwin()) return .async; + if (libunwind) return .async; + if (libtsan) return .async; + if (std.debug.Dwarf.abi.supportsUnwinding(target)) return .async; return .none; } @@ -815,7 +815,7 @@ pub fn compilerRtIntAbbrev(bits: u16) []const u8 { pub fn fnCallConvAllowsZigTypes(cc: std.builtin.CallingConvention) bool { return switch (cc) { - .auto, .@"async", .@"inline" => true, + .auto, .async, .@"inline" => true, // For now we want to authorize PTX kernel to use zig objects, even if // we end up exposing the ABI. The goal is to experiment with more // integrated CPU/GPU code. |
