Author: cwittich
Date: Sat Jan 26 21:49:51 2008
New Revision: 32020
URL:
http://svn.reactos.org/svn/reactos?rev=32020&view=rev
Log:
set the correct flags for PCH too
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 (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Sat Jan 26 21:49:51 2008
@@ -2133,6 +2133,10 @@
const FileLocation& baseHeaderFile = module.pch->file;
CLEAN_FILE ( *pchFilename );
string dependencies = backend->GetFullName ( baseHeaderFile );
+ string flags = cflagsMacro;
+ CompilerType type = module.cplusplus ? CompilerTypeCPP : CompilerTypeCC;
+ flags += " ";
+ flags += GenerateCompilerParametersFromVector ( module.non_if_data.compilerFlags , type
);
/* WIDL generated headers may be used */
vector<FileLocation> rpcDependencies;
GetRpcHeaderDependencies ( rpcDependencies );
@@ -2147,7 +2151,7 @@
"\t%s -o %s %s -g %s\n\n",
module.cplusplus ? cppc.c_str() : cc.c_str(),
backend->GetFullName ( *pchFilename ).c_str(),
- cflagsMacro.c_str(),
+ flags.c_str(),
backend->GetFullName ( baseHeaderFile ).c_str() );
delete pchFilename;
}