I need to use libclang in an iOS app (for diagnostics and syntax highlighting) but I can't seem to figure out how to build it as is, let alone for iOS. Using CMake I generated an Xcode project for LLVM, but Xcode ran out of memory and disk space for swap (a combined 25GB!) and crashed while opening the project. I need to get a static library out of it, and then I can manually import the headers, which shouldn't be a problem. What configure/make/cmake command [combinations] would I need to run?
Note: I only need the functions in the Index.h file if it makes any difference.
Thanks in advance.
I have created a series of articles for building clang.
You'll have some additional challenges building for iOS, but this would be a starting point.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With