zls icon indicating copy to clipboard operation
zls copied to clipboard

Complete cImport symbols

Open rcorre opened this issue 3 years ago • 4 comments

Notable language features that are not currently implemented include @cImport

(from the README).

Is this a feature zls eventually wants to have? If so, what would it take? Is it blocked on https://github.com/ziglang/zig/issues/4045?

rcorre avatar Apr 23 '21 10:04 rcorre

Hi.
To implement this feature we would need something like a compiler option that prints the location of each cImport and the corresponding generated zig file in the cache.
I will get around to adding this to the compiler at some point

alexnask avatar Apr 23 '21 15:04 alexnask

Very nice to have for game development.

track3r avatar Dec 21 '21 01:12 track3r

@alexnask Would zig build [...] --verbose-cimport meet the requirements for this? Or std.build.Builder's equivalent verbose_cimport field.

InKryption avatar Dec 21 '21 01:12 InKryption

Don't mean to nag or to annoy, but I really would like to know: is there a path forward for this using --verbose-cimport/Builder.verbose_cimport? If there is, I would be happy to try my hand at making an attempt, if anyone could suggest where to start. Is there a stub waiting to have this implemented or anything?

InKryption avatar Dec 27 '21 12:12 InKryption