Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit fd35046

Browse files
committed
update Aro and Zig
1 parent 6c612c9 commit fd35046

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
.fingerprint = 0x1c84f6455a54f043, // Changing this has security and trust implications.
77

8-
.minimum_zig_version = "0.16.0-dev.1334+06d08daba",
8+
.minimum_zig_version = "0.16.0-dev.1456+16fc083f2",
99

1010
.dependencies = .{
1111
.aro = .{
12-
.url = "git+https://github.com/Vexu/arocc#d84be01a6a85ac91f51b3ad7647ca356db3f3c76",
13-
.hash = "aro-0.0.0-JSD1QvVvNgCxkaLWsgk1JClDUgsxTcPrUo43odmNIGT2",
12+
.url = "git+https://github.com/Vexu/arocc#967f8b03ea19f43f8c1c009d7c1f5398bbd79246",
13+
.hash = "aro-0.0.0-JSD1Qi2TNgAqcz8WhBqh5B4FcjLw2WZCvRMqPfT8Q9gY",
1414
},
1515
},
1616

lib/helpers.zig

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,13 @@ fn ToUnsigned(comptime T: type) type {
8585
pub fn FlexibleArrayType(comptime SelfType: type, comptime ElementType: type) type {
8686
switch (@typeInfo(SelfType)) {
8787
.pointer => |ptr| {
88-
return @Type(.{ .pointer = .{
89-
.size = .c,
90-
.is_const = ptr.is_const,
91-
.is_volatile = ptr.is_volatile,
92-
.alignment = @alignOf(ElementType),
93-
.address_space = .generic,
94-
.child = ElementType,
95-
.is_allowzero = true,
96-
.sentinel_ptr = null,
97-
} });
88+
return @Pointer(.c, .{
89+
.@"const" = ptr.is_const,
90+
.@"volatile" = ptr.is_volatile,
91+
.@"allowzero" = true,
92+
.@"addrspace" = .generic,
93+
.@"align" = @alignOf(ElementType),
94+
}, ElementType, null);
9895
},
9996
else => |info| @compileError("Invalid self type \"" ++ @tagName(info) ++ "\" for flexible array getter: " ++ @typeName(SelfType)),
10097
}
@@ -219,7 +216,7 @@ fn castInt(comptime DestType: type, target: anytype) DestType {
219216
const dest = @typeInfo(DestType).int;
220217
const source = @typeInfo(@TypeOf(target)).int;
221218

222-
const Int = @Type(.{ .int = .{ .bits = dest.bits, .signedness = source.signedness } });
219+
const Int = @Int(source.signedness, dest.bits);
223220

224221
if (dest.bits < source.bits)
225222
return @as(DestType, @bitCast(@as(Int, @truncate(target))))

src/Translator.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,10 @@ fn transExpr(t: *Translator, scope: *Scope, expr: Node.Index, used: ResultUsed)
22412241
.builtin_convertvector => |convertvector| try t.transConvertvectorExpr(scope, convertvector),
22422242
.builtin_shufflevector => |shufflevector| try t.transShufflevectorExpr(scope, shufflevector),
22432243

2244+
.builtin_va_arg_pack, .builtin_va_arg_pack_len => |va_arg_pack| {
2245+
return t.fail(error.UnsupportedTranslation, va_arg_pack.builtin_tok, "TODO va arg pack", .{});
2246+
},
2247+
22442248
.compound_stmt,
22452249
.static_assert,
22462250
.return_stmt,

0 commit comments

Comments
 (0)