Displaying 2 results from an estimated 2 matches for "cmakedetermineccompiler".
2012 Jul 30
0
[LLVMdev] clean CMake build failing (Mac OS X 10.8)
...g to compile the C code (note that /usr/bin/cc is clang on this system; why it's picking gcc, I don't know)
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, thou...
2012 Jul 30
3
[LLVMdev] clean CMake build failing (Mac OS X 10.8)
Over the weekend I upgraded my system to Mac OS X 10.8, and now a clean cmake build fails.
The error message:
> Building C object runtime/libprofile/CMakeFiles/profile_rt-static.dir/CommonProfiling.c.o
> cc1: error: unrecognized command line option "-Wcovered-switch-default"
The configuration:
> Mac OS X 10.8
> CMake 2.8.8
> LLVM tot
> Apple clang version 4.0