[LLVMdev] make

Óscar Fuentes ofv at wanadoo.es
Fri Mar 11 06:44:07 PST 2011


Jonas Paulsson <jnspaulsson at hotmail.com> writes:

> is it possible to reduce link time by excluding unused target backends?
>
> I would like to type
>
> tools/llc make -target=... , and just build it for one backend.

If you build with configure && make, use the configure option
--enable-targets. If you build with cmake && make, pass
-DLLVM_TARGETS_TO_BUILD=YOURBACKEND to cmake.

See http://www.llvm.org/docs/CMake.html for more info on building with
cmake.



More information about the llvm-dev mailing list