mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
no big endian (#7974)
This commit is contained in:
@@ -11280,7 +11280,6 @@ const ContentHasher = struct {
|
||||
}
|
||||
|
||||
pub fn writeInts(self: *ContentHasher, i: []const u32) void {
|
||||
// TODO: BigEndian
|
||||
self.hasher.update(std.mem.sliceAsBytes(i));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
pub const build_options = @import("build_options");
|
||||
|
||||
const panicky = @import("./panic_handler.zig");
|
||||
@@ -6,6 +7,10 @@ const MainPanicHandler = panicky.NewPanicHandler(std.builtin.default_panic);
|
||||
|
||||
pub const io_mode = .blocking;
|
||||
|
||||
comptime {
|
||||
std.debug.assert(builtin.target.cpu.arch.endian() == .little);
|
||||
}
|
||||
|
||||
pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, addr: ?usize) noreturn {
|
||||
MainPanicHandler.handle_panic(msg, error_return_trace, addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user