Treat embedded g++ toolchains as desktop g++ toolchains.

That means wrong target (though argueable we don't have a correct one
yet, but working defines and includes.
This commit is contained in:
dt
2010-04-07 14:49:58 +02:00
parent 27b1df583a
commit 340ca7f8d8

View File

@@ -1305,7 +1305,8 @@ void QtVersion::updateToolChainAndMkspec() const
m_toolChains << ToolChainPtr(
ProjectExplorer::ToolChain::createMinGWToolChain(qmakeCXX, mingwDirectory()));
m_targetIds.insert(QLatin1String(Constants::DESKTOP_TARGET_ID));
} else if (qmakeCXX == "g++") {
} else if (qmakeCXX.endsWith("g++")) { // All g++ variants are treated as desktop g++
// we should try to do a better job, but for now that's good enough
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
//addToEnvironment(env);
if (qmakeCXX.isEmpty()) {