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

svn path=/trunk/; revision=38784
This commit is contained in:
KJK::Hyperion 2009-01-16 10:44:36 +00:00
parent 7f47ebc3d5
commit af89bbaaa9

View file

@ -1713,11 +1713,12 @@ MingwModuleHandler::GenerateObjectFileTargets ()
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;
}