make

Hi,

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.

/Jonas

Jonas Paulsson <jnspaulsson@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.

thanks! Can I run configure once again with no problems? I have reconfigured after adding a new target, per http://wiki.llvm.org/HowTo:_Create_and_register_a_new_back_end_(a_new_hardware_target), which includes AutoRegen.sh.

/Jonas