1

Is it possible to build a clang plugin using an already built version of clang?

I've done all the steps to download and build clang but I don't know how to set up a tool so that the Makefile doesn't traverse the entire llvm and clang directories each time that I compile my tool (traversing the Makefile seems to take about as long as building my single file plugin).

Thanks.

Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62
Gregory
  • 1,205
  • 10
  • 17

1 Answers1

1

If you are using the CMake build system (which you should be with reset LLVM), then CMake creates special targets to bypass dependency checks.

If you target name is target, call:

make target/fast

And then the Makefile will not check/rebuild all the dependent libraries. There is also a make install/fast.

Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62