mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
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:
parent
7f47ebc3d5
commit
af89bbaaa9
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue