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

unable to use this package with incremental compilation #161

Closed
andrewrk opened this issue Sep 17, 2024 · 5 comments
Closed

unable to use this package with incremental compilation #161

andrewrk opened this issue Sep 17, 2024 · 5 comments

Comments

@andrewrk
Copy link
Contributor

[nix-shell:~/dev/daw]$ zig build run -Dno-bin --watch -fincremental --prominent-compile-errors
run
└─ run daw
   └─ zig build-exe daw Debug native
      └─ run shader_compiler (triangle.vert.spv)
         └─ zig build-exe shader_compiler ReleaseFast native failure
error: thread 782909 panic: 'usingnamespace' is not supported by incremental compilation
Unable to dump stack trace: debug info stripped

I heard a rumor that the zig devs might choose to remove usingnamespace from the language

@Snektron
Copy link
Owner

I didn't know about that restriction... Anyway, it's only used for flag mixin functions, and that can be solved another way quite easily.

Snektron added a commit that referenced this issue Sep 17, 2024
@andrewrk
Copy link
Contributor Author

ooh wow, thanks!

@andrewrk
Copy link
Contributor Author

$ zig build  -Dno-bin --watch -fincremental
Build Summary: 27/27 steps succeeded
install success
└─ zig build-exe daw Debug native success 3s
Build Summary: 27/27 steps succeeded
install success
└─ zig build-exe daw Debug native success 4ms
Build Summary: 27/27 steps succeeded
install success
└─ zig build-exe daw Debug native success 2ms
Build Summary: 27/27 steps succeeded
install success
└─ zig build-exe daw Debug native success 4ms
Build Summary: 27/27 steps succeeded
install success
└─ zig build-exe daw Debug native success 3ms
^Ctching 99 directories, 13 processes

~3ms to get compile errors 😎

@Snektron
Copy link
Owner

Impressive considering the amount of generated code, I think the generated bindings are almost 60000 lines now.

@andrewrk
Copy link
Contributor Author

Yeah I mean those lines don't need to be reanalyzed if they're not edited

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

2 participants