Skip to content

Commit d5599bd

Browse files
committed
core: fix no_hal builds
1 parent e15a0c7 commit d5599bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/utilities.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub inline fn initialize_system_memories(which: enum {
4040
@memset(bss_start[0..bss_len], 0);
4141
}
4242

43-
if (@hasDecl(microzig.hal, "extra_ram_load_sections")) {
43+
if (microzig.hal != void and @hasDecl(microzig.hal, "extra_ram_load_sections")) {
4444
inline for (microzig.hal.extra_ram_load_sections) |section_name| {
4545
const section = struct {
4646
const start = @extern(*anyopaque, .{ .name = std.fmt.comptimePrint("microzig_{s}_start", .{section_name}) });

0 commit comments

Comments
 (0)