How to build a stand-alone clang executable?

Viewed 516

Is there a way to build a clang tool as a standalone executable?

Something like this AST printer from 5 years ago, but it no longer matches current LLVM specs, so I'm wondering how I should modify my directories and includes so everything works properly.

1 Answers

The CoARCT project demonstrates example tools built on Clang libtooling; all builds are done out of the LLVM tree. Perhaps it can help?

https://github.com/lanl/coarct

Related