Building tablegen alone

Hi!

For one of my cross compilation requirements I need to build tablegen alone for the host platform. Is there any way to configure the make system to build only the tablegen?

Thank you

Ganesh

You can always use "make llvm-tblgen" after you configure the build tree. I don't know if there is any way to restrict it otherwise in terms of downloading sources, etc.

-Krzysztof

I believe we support cross-compiling with CMake: passing -DCMAKE_CROSSCOMPILING=ON will trigger automatically that llvm-tblgen will be first build for the host in a subdirectory, before starting the build for the target using the just-built tablegen.

See also: http://llvm.org/docs/HowToCrossCompileLLVM.html