Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Zig 0.12 #14

Open
rupurt opened this issue Feb 8, 2024 · 1 comment
Open

Support Zig 0.12 #14

rupurt opened this issue Feb 8, 2024 · 1 comment

Comments

@rupurt
Copy link
Contributor

rupurt commented Feb 8, 2024

Currently there are build and test errors

╰─ zig build
/home/alex/workspace/mjoerussell/zig-odbc/build.zig:27:9: error: local variable is never mutated
    var lib = b.addStaticLibrary(.{
        ^~~
/home/alex/workspace/mjoerussell/zig-odbc/build.zig:27:9: note: consider using 'const'
/home/alex/workspace/mjoerussell/zig-odbc/build.zig:63:13: error: local variable is never mutated
        var current_tests = b.addTest(.{
            ^~~~~~~~~~~~~
/home/alex/workspace/mjoerussell/zig-odbc/build.zig:63:13: note: consider using 'const'
@rupurt
Copy link
Contributor Author

rupurt commented Feb 8, 2024

I've made the const changes on a branch and the errors are now:

╰─ zig build test
/home/alex/workspace/mjoerussell/zig-odbc/build.zig:48:40: error: root struct of file 'std' has no member named 'build'
pub fn setupOdbcDependencies(step: *std.build.Step.Compile) void {
                                    ~~~^~~~~~
/nix/store/rlabnlq8gad6sx0jldlja54habc7gc4k-zig-0.12.0-dev.2644+42fcca49c/lib/std/std.zig:1:1: note: struct declared here
pub const ArrayHashMap = array_hash_map.ArrayHashMap;
^~~
referenced by:
    build: /home/alex/workspace/mjoerussell/zig-odbc/build.zig:33:5
    runBuild__anon_8964: /nix/store/rlabnlq8gad6sx0jldlja54habc7gc4k-zig-0.12.0-dev.2644+42fcca49c/lib/std/Build.zig:1982:27
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant