From 578af1e701758f269be84432da75dcf8b18890bc Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 7 Feb 2017 13:13:06 +0100 Subject: [PATCH] ProjectExplorer: Enable factories to autodetect a specific toolchain This is necessary to auto-detect the toolchain e.g. found in an existing cmake or qbs build directory. Change-Id: I1405d1337855d55fa0145e8b50a5864ff0d4231b Reviewed-by: Tim Jenssen --- src/plugins/projectexplorer/toolchain.cpp | 7 +++++++ src/plugins/projectexplorer/toolchain.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index 7e867b0c472..c8c6d6c3f1e 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -319,6 +319,13 @@ QList ToolChainFactory::autoDetect(const QList &alread return QList(); } +QList ToolChainFactory::autoDetect(const Utils::FileName &compilerPath, const Core::Id &language) +{ + Q_UNUSED(compilerPath); + Q_UNUSED(language); + return QList(); +} + bool ToolChainFactory::canCreate() { return false; diff --git a/src/plugins/projectexplorer/toolchain.h b/src/plugins/projectexplorer/toolchain.h index f844e940f6f..49004f37d09 100644 --- a/src/plugins/projectexplorer/toolchain.h +++ b/src/plugins/projectexplorer/toolchain.h @@ -170,6 +170,7 @@ public: QString displayName() const { return m_displayName; } virtual QList autoDetect(const QList &alreadyKnown); + virtual QList autoDetect(const Utils::FileName &compilerPath, const Core::Id &language); virtual bool canCreate(); virtual ToolChain *create(Core::Id l);