forked from qt-creator/qt-creator
ToolChain: Refactor toolchain support
Refactor ToolChains in Qt Creator: * Allow for several toolchains of the same type * Be smarter wrt. guessing what kind of output a toolchain produces. This allows us to eventually handle e.g. embedded linux setups way better than before. * Be smarter wrt. guessing what kind of environment a Qt version needs. * Improve auto-detection of toolchains a bit * Decide on which debugger to use based on the kind of output produced by the compiler. * Add options page to configure toolchains * Remove toolchain related options from the Qt version dialog Reviewed-by: dt
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "outputformatter.h"
|
||||
#include "project.h"
|
||||
#include "target.h"
|
||||
#include "toolchain.h"
|
||||
#include "buildconfiguration.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
@@ -241,6 +242,17 @@ QVariantMap RunConfiguration::toMap() const
|
||||
return map;
|
||||
}
|
||||
|
||||
ProjectExplorer::Abi RunConfiguration::abi() const
|
||||
{
|
||||
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
||||
if (!bc)
|
||||
return Abi::hostAbi();
|
||||
ToolChain *tc = bc->toolChain();
|
||||
if (!tc)
|
||||
return Abi::hostAbi();
|
||||
return tc->targetAbi();
|
||||
}
|
||||
|
||||
bool RunConfiguration::fromMap(const QVariantMap &map)
|
||||
{
|
||||
m_useCppDebugger = map.value(QLatin1String(USE_CPP_DEBUGGER_KEY), true).toBool();
|
||||
|
||||
Reference in New Issue
Block a user