[GCC-XML] Compiling gccxml with homebrewed gcc4.9

Brad King brad.king at kitware.com
Mon Oct 20 09:20:50 EDT 2014


On 10/18/2014 04:56 PM, michkapopoff at gmail.com wrote:
> I think the error is coming from: gcc-4.9: error: unrecognized command
> line option '-no-cpp-precomp’

That is in gccxml in GCC/CMakeLists.txt:

 IF(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$")
   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -no-cpp-precomp")
 ENDIF()

It looks like the addition of that flag dates back to 2003 so
I suspect it is no longer necessary.  Try dropping that block.

-Brad




More information about the gccxml mailing list