From af89bbaaa97fee43cd30e6b36a5bd29c222d1f9c Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Fri, 16 Jan 2009 10:44:36 +0000 Subject: [PATCH] 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 --- reactos/tools/rbuild/backend/mingw/modulehandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index c3c43f9d2c7..76bcd34d420 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -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; }