[PATCH] Use a consistent generator's name for cmake invocations

Simon Atanasyan simon at atanasyan.com
Fri Jul 26 06:20:46 PDT 2013


Hi,

When I try to cross-compile LLVM using cmake+ninja the process fails
on building a native TableGen. The build.ninja file generated by cmake
invokes cmake again without -G option. As a result cmake uses a
default generator and creates Makefile instead of build.ninja for
building native TableGen.

The attached patch passes -G argument to cmake with the same
generator's name as used for the initial cmake invocation.

I'm not an expert in cmake, so could anybody review the patch before commit?

Regards,
Simon Atanasyan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: same-generator.patch
Type: application/octet-stream
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130726/c1639f7f/attachment.obj>


More information about the llvm-commits mailing list