Skip to content

build: using zig 0.6.0 will cause a compiler error #210

Closed
@perillo

Description

@perillo

A comment in build.zig says:

/// Check the zig version to make sure it can compile the examples properly.
/// This will compile with Zig 0.6.0 and later.

However I tested with zig 0.6.0 and got a compiler error:

const needed_version = std.SemanticVersion.parse("0.11.0-dev.2157") catch unreachable;
                          ^
./build.zig:531:13: note: referenced here
        , .{needed_version});
            ^
/home/manlio/.local/share/sdk/zig/0.6.0/lib/zig/std/special/build_runner.zig:133:24: note: referenced here
        .ErrorUnion => try root.build(builder),
                       ^

I will fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions