Skip to content

Commit 2799625

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 != 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)