Superbelko / ohmygentool

LLVM/Clang based bindings generator for D language
The Unlicense
38 stars 6 forks source link

Linux build fails with static libclang #10

Open Superbelko opened 3 years ago

Superbelko commented 3 years ago

Ubuntu 20.04, libclang v12.0 Lots of unresolved externals, seems like recent changes in build scripts broken the linker flags. Dynamic libs from apt works fine though.

kassane commented 10 months ago

Shouldn't it be more convenient here just to use clang ast-dump instead of libclang?

Superbelko commented 10 months ago

What problem this will solve? Drop the clang dependency? Ok, imagine if I drop it, what's next? Does the JSON do a semantic analysis on it? Does is it analyze macro and convert them to semantically valid expressions and declarations? Can it take the D code and convert it back to C++?

It may sound appealing to drop the dependency and just use the parsed output however in the end semantic analysis has to be re-implemented in place of clang.

Additionally when I started this project I had in mind bidirectional conversion and more interactivity, e.g. something like LSP or python scripting.

However since I have other things to do that I truly need and the lack of interest from community this project is now mostly stale.