aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskellrunconfiguration.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-02-17 11:12:53 +0100
committerEike Ziller <eike.ziller@qt.io>2018-02-17 11:12:53 +0100
commit3dcba90f6c5a7eb7e61b5e5588d348c166998dcc (patch)
tree9727b24c3ff114ae7b8d9d7da0da417bf15d66b3 /plugins/haskell/haskellrunconfiguration.cpp
parent6db6c04550d36a84ba3a8c3c95eafbdf4fba87d4 (diff)
parent4ca4a6b4d108a1681e66de8f82e50d1f7a46d926 (diff)
Merge remote-tracking branch 'origin/4.6'
Diffstat (limited to 'plugins/haskell/haskellrunconfiguration.cpp')
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.cpp b/plugins/haskell/haskellrunconfiguration.cpp
index 87514e3..661fa05 100644
--- a/plugins/haskell/haskellrunconfiguration.cpp
+++ b/plugins/haskell/haskellrunconfiguration.cpp
@@ -51,12 +51,16 @@ HaskellRunConfigurationFactory::HaskellRunConfigurationFactory()
setSupportedTargetDeviceTypes({ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE});
}
-QList<QString> HaskellRunConfigurationFactory::availableBuildTargets(
+QList<BuildTargetInfo> HaskellRunConfigurationFactory::availableBuildTargets(
Target *parent, IRunConfigurationFactory::CreationMode mode) const
{
Q_UNUSED(mode)
const auto project = HaskellProject::toHaskellProject(parent->project());
- return project ? project->availableExecutables() : QList<QString>();
+ if (!project)
+ return {};
+ return Utils::transform(project->availableExecutables(), [](const QString &name) {
+ return BuildTargetInfo(name, Utils::FileName(), Utils::FileName());
+ });
}
HaskellRunConfiguration::HaskellRunConfiguration(Target *parent)