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.