Author: hyperion Date: Fri Jan 16 04:44:36 2009 New Revision: 38784
URL: http://svn.reactos.org/svn/reactos?rev=38784&view=rev Log: modified tools/rbuild/backend/mingw/modulehandler.cpp Don't precompile headers with g++: g++ is stupid and, ironically, will precompile .h headers but not .hpp headers (it will mistake them for linker input files). Always use gcc instead Don't let gcc guess the language of the header, either: we detect "C++ modules" automatically in rbuild, use that for consistency
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw/... ============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] Fri Jan 16 04:44:36 2009 @@ -1713,11 +1713,12 @@ backend->GetFullPath ( *pchFilename ).c_str() ); fprintf ( fMakefile, "\t$(ECHO_PCH)\n" ); fprintf ( fMakefile, - "\t%s -o %s %s %s -gstabs+ %s\n\n", - module.cplusplus ? cppc.c_str() : cc.c_str(), + "\t%s -o %s %s %s -gstabs+ -x %s %s\n\n", + cc.c_str(), backend->GetFullName ( *pchFilename ).c_str(), module.cplusplus ? cxxflagsMacro.c_str() : cflagsMacro.c_str(), GenerateCompilerParametersFromVector ( module.non_if_data.compilerFlags, module.cplusplus ? CompilerTypeCPP : CompilerTypeCC ).c_str(), + module.cplusplus ? "c++-header" : "c-header", backend->GetFullName ( baseHeaderFile ).c_str() ); delete pchFilename; }