Skip to content

Commit

Permalink
astro/mepo: unbreak build after 9155255
Browse files Browse the repository at this point in the history
src/main.zig:15:13: error: encountered @Panic at comptime
            @Panic("Must be built against Zig 0.10.0");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    comptime_0: /usr/local/lib/zig/std/start.zig:59:50
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
  • Loading branch information
jbeich committed Jan 23, 2023
1 parent be5f2b5 commit 8996a92
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions astro/mepo/files/patch-zig-0.10.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Allow newer often compatible Zig patch-level updates

--- src/main.zig.orig 2022-11-17 16:38:59 UTC
+++ src/main.zig
@@ -11,8 +11,8 @@ pub fn main() !void {
pub fn main() !void {
comptime {
const v = builtin.zig_version;
- if (v.major != 0 or v.minor != 10 or v.patch != 0)
- @panic("Must be built against Zig 0.10.0");
+ if (v.major != 0 or v.minor != 10)
+ @panic("Must be built against Zig 0.10");
}

const allocator = std.heap.c_allocator;

0 comments on commit 8996a92

Please sign in to comment.