We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
0.10.0-dev.1931+ab658e32b
Create a file called llvm.zig with a pub function in it:
llvm.zig
pub
pub fn foo() {}
and a root source that depends on it (e.g. root.zig):
root.zig
comptime { _ = @import("llvm.zig").foo; }
Then try to compile root.zig, e.g.
zig build-obj root.zig
The compilation succeeds and produces an object file.
The compilation fails with this output:
broken LLVM module found: llvm intrinsics cannot be defined! void ()* @llvm.foo This is a bug in the Zig compiler.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! I'm going to close this as a duplicate of #2291 since they have the same root cause and fix.
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.10.0-dev.1931+ab658e32b
Steps to Reproduce
Create a file called
llvm.zig
with apub
function in it:and a root source that depends on it (e.g.
root.zig
):Then try to compile
root.zig
, e.g.Expected Behavior
The compilation succeeds and produces an object file.
Actual Behavior
The compilation fails with this output:
The text was updated successfully, but these errors were encountered: