[LLVMdev] clean CMake build failing (Mac OS X 10.8)

Óscar Fuentes ofv at wanadoo.es
Tue Jul 31 13:57:01 PDT 2012


Dimitry Andric <dimitry at andric.com> writes:

> This is a problem in CMake; for a C compiler, it always picks a 'gcc'
> executable in the PATH over a 'cc' executable.  See the file
> /opt/local/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake, where
> it has:
>
>     [...]
>     SET(CMAKE_C_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}gcc ${_CMAKE_TOOLCHAIN_PREFIX}cc cl bcc xlc)
>
> Maybe this was done, because some systems used to have a bad default cc?
> Like Solaris? :)  I don't think that reasoning is really valid anymore,
> these days, though.

I passed your remark to the CMake developers and they swiftly fixed the
issue:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=27b74445

CMake version 2.8.9 already is in final RC stage, so the change will
appear on version 2.8.10.

Thanks.

[snip]




More information about the llvm-dev mailing list