[cfe-dev] [LLVMdev] RFC: Upcoming Build System Changes

Reid Kleckner reid.kleckner at gmail.com
Fri Oct 28 06:28:38 PDT 2011


On Fri, Oct 28, 2011 at 3:54 AM, Óscar Fuentes <ofv at wanadoo.es> wrote:

> Anyways, if you wish to avoid duplicating info on both Makefile and
> CMakeLists.txt there is a simple solution: read and parse the Makefile
> from the corresponding CMakeLists.txt. For instance, if you put the
> library dependencies on the Makefile like this:
>
> LLVMLIBDEPS := foo zoo bar
>
> obtaining that info from the CMakeLists.txt and generating the cmake
> library dependencies is very simple, nor even you have to put anything
> new on all those CMakeLists.txt, just modify one of the macros that are
> (indirectly) called from each CMakeLists.txt.
>
>
While eliminating duplication is one of the goals I see in this build system
change, I think the more important ones are a) simplifying the build files
and b) making the build faster.

Adding CMake code (I agree it's a terrible scripting language) to parse
Makefiles will make the build slower and more complicated.

-----

I'm not really a stakeholder, but I agree with Chandler, it's worth
investigating simplifying LLVM's CMake files before making Yet Another build
system generator if you haven't already.  That may not solve the problems
associated with the bad XCode project generation, though.

OTOH, LLVM seems to have invented many of it's own tools (lit, tablegen,
filecheck) and they seem to have worked out great.  I wish our test suite
for DynamoRIO had a tool as flexible as FileCheck.  :(

Reid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111028/f1a6039c/attachment.html>


More information about the cfe-dev mailing list