Share some code between gcc and gcce tool chains.

This commit is contained in:
con
2009-07-14 12:14:58 +02:00
parent 37a146d05c
commit d0627b1b95
5 changed files with 16 additions and 87 deletions

View File

@@ -149,6 +149,9 @@ QByteArray GccToolChain::predefinedMacros()
<< QLatin1String("-");
QProcess cpp;
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
addToEnvironment(env);
cpp.setEnvironment(env.toStringList());
cpp.start(m_gcc, arguments);
cpp.closeWriteChannel();
cpp.waitForFinished();
@@ -167,6 +170,9 @@ QList<HeaderPath> GccToolChain::systemHeaderPaths()
<< QLatin1String("-");
QProcess cpp;
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
addToEnvironment(env);
cpp.setEnvironment(env.toStringList());
cpp.setReadChannelMode(QProcess::MergedChannels);
cpp.start(m_gcc, arguments);
cpp.closeWriteChannel();