Commit be86956d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix meson build

CCMAIL: daniel@mensinger-ka.de
parent 62ae1929
......@@ -268,6 +268,12 @@ bool MesonManager::hasBuildInfo(KDevelop::ProjectBaseItem* item) const
return true;
}
KDevelop::Path MesonManager::compiler(KDevelop::ProjectTargetItem* item) const
{
const auto source = sourceFromItem(item);
return source && !source->compiler().isEmpty() ? KDevelop::Path(source->compiler().constFirst()) : KDevelop::Path();
}
// ********************
// * Custom functions *
// ********************
......
......@@ -108,6 +108,8 @@ public:
}
bool removeFilesFromTargets(const QList<KDevelop::ProjectFileItem*>& /*files*/) override { return false; }
KDevelop::Path compiler(KDevelop::ProjectTargetItem * p) const override;
private:
MesonBuilder* m_builder;
QHash<KDevelop::IProject*, MesonTargetsPtr> m_projectTargets;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment