Skip to content

Conversation

@MatthewRoush
Copy link
Contributor

Calling addImport on a module with no root_source_file causes a build error. Zig exposes a module called "root", which is the root_source_file, and it seems that it is expected to exist when adding imports. This makes it necessary to check if the module has a root_source_file before trying to add the "android_builtin" import.

Calling `addImport` on a module with no `root_source_file` causes a build error. Zig exposes a module called "root", which is the `root_source_file`, and it seems that it is expected to exist when adding imports. This makes it necessary to check if the module has a `root_source_file` before trying to add the "android_builtin" import.
@silbinarywolf silbinarywolf merged commit 4758c1a into silbinarywolf:main Sep 13, 2025
3 checks passed
@silbinarywolf
Copy link
Owner

Thanks for the fix!

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

Successfully merging this pull request may close these issues.

2 participants