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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20110311/c2179915/attachment.html>
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 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 wiki.llvm.org/HowTo:_Create_and_register_a_new_back_end_(a_new_hardware_target), which includes AutoRegen.sh. /Jonas> From: ofv at wanadoo.es > To: jnspaulsson at hotmail.com > CC: llvmdev at cs.uiuc.edu > Subject: Re: make > Date: Fri, 11 Mar 2011 15:44:07 +0100 > > 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 llvm.org/docs/CMake.html for more info on building with > cmake.-------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20110311/97eed59b/attachment.html>