commit 4ba2bcbbec68cfc78f1dc0c2031188519bc37a68 (tree)
parent 642d017fea531d1347b8ade16c33065389a20192
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 23 May 2026 16:05:41 -0700
std.Build.Configuration: fix loading on big endian
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Build/Configuration.zig b/lib/std/Build/Configuration.zig
@@ -3360,7 +3360,7 @@ pub fn loadFile(arena: Allocator, io: Io, file: Io.File) LoadFileError!Configura
pub const LoadError = Io.Reader.Error || Allocator.Error;
pub fn load(arena: Allocator, reader: *Io.Reader) LoadError!Configuration {
- const header = try reader.takeStruct(Header, .little);
+ const header = try reader.takeStruct(Header, .native);
const result: Configuration = .{
.string_bytes = try arena.alloc(u8, header.string_bytes_len),
.steps = try arena.alloc(Step, header.steps_len),