Skip to content

Conversation

Araq
Copy link
Member

@Araq Araq commented Mar 14, 2025

No description provided.

@mrgaturus
Copy link
Contributor

mrgaturus commented Mar 14, 2025

it's possible use some of libclang to allow llvm backend use c header files to make {.header.} pragma working with llvm backend, Zig uses it for @cImport, @cDefine and @cInclude ffi features

@Araq
Copy link
Member Author

Araq commented Mar 14, 2025

No, I'm not interested in this "we need a C compiler for good" business.

@Araq
Copy link
Member Author

Araq commented Mar 14, 2025

Instead you can decide for every module whether to compile the module to C or to LLVM. You then get not as good debug info for your Nim code that compiles to C (POSIX wrappers?) but then who needs that. This design keeps the overall complexity low as no new language pragmas needs to be introduced.

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