Richard Smith <richard at metafoo.co.uk> writes:>> I think this second option is the more elegant one (less source >> dependencies), but is it possible in a single CMake build? >> > > Right now, no,A CMake build can run CMake builds. This is currently done for cross-compiling LLVM: the "cross-compiling" CMake build can configure and run a nested CMake build for building a native tablegen.
On Thu, May 23, 2013 at 4:08 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:> Richard Smith <richard at metafoo.co.uk> writes: > > >> I think this second option is the more elegant one (less source > >> dependencies), but is it possible in a single CMake build? > >> > > > > Right now, no, > > A CMake build can run CMake builds. This is currently done for > cross-compiling LLVM: the "cross-compiling" CMake build can configure > and run a nested CMake build for building a native tablegen.That's not "a single CMake build" in the way I was understanding that phrase. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130523/c41396e0/attachment.html>
Richard Smith <richard at metafoo.co.uk> writes:>> >> I think this second option is the more elegant one (less source >> >> dependencies), but is it possible in a single CMake build? >> > >> > Right now, no, >> >> A CMake build can run CMake builds. This is currently done for >> cross-compiling LLVM: the "cross-compiling" CMake build can configure >> and run a nested CMake build for building a native tablegen. > > That's not "a single CMake build" in the way I was understanding that > phrase.The point is that the user needs a single cmake&make invocation.
[Re-adding llvmdev to CC list] Richard Smith <richard at metafoo.co.uk> writes:>> >> >> I think this second option is the more elegant one (less source >> >> >> dependencies), but is it possible in a single CMake build? >> >> > >> >> > Right now, no, >> >> >> >> A CMake build can run CMake builds. This is currently done for >> >> cross-compiling LLVM: the "cross-compiling" CMake build can configure >> >> and run a nested CMake build for building a native tablegen. >> > >> > That's not "a single CMake build" in the way I was understanding that >> > phrase. >> >> The point is that the user needs a single cmake&make invocation. > > > It's still not possible *right now*. No-one has implemented support for > this.I'm afraid that we are miscommunicating. The first paragraph quoted on this message is a question by someone who clearly asks if is it possible (i.e. technically achievable) to execute a CMake build from another. The answer is yes, as demonstrated by how tablegen is managed while cross-compiling by the LLVM CMake scripts. AFAIK solving the compiler-rt case would be achieved by a similar (not identical, but similar) approach.