Skip to content

Commit

Permalink
fix ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tact1m4n3 committed Jan 9, 2025
1 parent ca3aa82 commit 955bbed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion port/raspberrypi/rp2xxx/src/hal.zig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const builtin = @import("builtin");
const std = @import("std");
const microzig = @import("microzig");
const SIO = microzig.chip.peripherals.SIO;
Expand Down Expand Up @@ -30,7 +31,10 @@ pub const compatibility = @import("hal/compatibility.zig");
pub const image_def = @import("hal/image_def.zig");

comptime {
_ = image_def;
// HACK: tests can't access microzig. maybe there's a better way to do this.
if (!builtin.is_test) {
_ = image_def;
}
}

/// A default clock configuration with sensible defaults that will work
Expand Down

0 comments on commit 955bbed

Please sign in to comment.