-
-
Notifications
You must be signed in to change notification settings - Fork 29
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 Zig cc compiler #319
Comments
Have you tried with gcc? |
Yes, gcc works fine, but zig cc provides a more smooth cross compiling experience as well as other QoL improvements |
what's the command to compile with zig? |
|
have you tried to put "zig cc" on your compiler? |
I have, as I mentioned in the additional context, since it uses an exec call instead of a shell command call, it tries to look for a binary named zig cc, even if I renamed it, would make it so argv[0] would be "zig cc", and therefore, not recognized as the cc subcommand |
@dimaguy I'll leave the issue open as an improvement for future release |
Sure, sounds good to me :) |
Describe the bug
I can't point the extension to use Zig's cc compiler because flags are placed after the file and output location are selected
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Extension will invoke Zig's compilers as if they were gcc or clang
Screenshots
Environment
Additional context
I also attempted to append cc at the end of C-compiler, but that tries to find a binary named "zig cc" instead
The text was updated successfully, but these errors were encountered: