[LLVMdev] Arm port

Óscar Fuentes ofv at wanadoo.es
Fri May 22 17:53:29 PDT 2009

Chuck Robey <chuckr at telenix.org> writes:

> I've never asked for (and wouldn't personally contribute to) any project to
> generate BSD Makefiles from CMake input.  My feelings are, you generate BSD
> Makefiles directly, they are NOT that complicated, and making them be generated
> like that reduces the simplicity, make troubleshooting more difficult.

Fair enough, but BSD Make is no solution for the Visual Studio or XCode
users. Those users fall within the intended audience of LLVM.

>> Maybe there is a common misunderstanding here. CMake is not a build
>> tool, it is a build generator tool. That means that it competes with the
>> GNU autotools, for instance, but not with make, or gmake. CMake
>> generates makefiles (or project files for XCode, Visual Studio, etc) so
>> it actually requires some other tool (`make' in your case) for the
>> actual build. This is why I'm suggesting that you should check if CMake
>> generates makefiles compatible with BSD make, instead of writing (and
>> maintaining) them yourself. LLVM is a fast moving target: adding, moving
>> and removing source files and library requirements is common.
>> Ah, and as you may prefer to avoid the autotools, you need a
>> BSD-specific config.h file, don't you? In principle, CMake can provide
>> this too.
> This last sentence is quite confusing.  Further above, you said the build system
> isn't CMake, but in this last sentence,  you're defending CMake.  I can't tell
> what you're trying to say  here.

I guess we are on different wavelengths. I'm trying to save you some
time, but failing miserably, so I'll stop here.


> I got told, at first, that all patches were welcome, but since then
> I've seen some folks don't want patches. Far be it from me to give
> patches where they're not wanted.

Those folks (specially me) are not the people who decide which patches
are accepted. So please go ahead if you wish.

> I CAN say that the Makefiles that CMake is generating for you are
> incompatible with BSD Make,

Just to clarify things: have you *tried* to build LLVM with the
makefiles generated by cmake on your BSD system? I repeat again that the
makefiles you get with the LLVM sources are not related to cmake. For
generating the makefiles follow the instructions here:


Extra thanks if you report the cmake version and the error messages
displayed on the console.

I think it is great news that clang/LLVM is adopted by the BSD community.
If my humble area of expertise within LLVM (the cmake build spec) is
potentially useful for them, certainly I would contribute some time.



More information about the llvm-dev mailing list