Nim: Fix empty compiler version

We should read the standard output and not the standard error

Change-Id: If3731ffaf3d4ee9709da8bac8cdde1ea0e861a30
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Filippo Cucchetto
2018-12-15 12:47:03 +01:00
parent cc812e841b
commit 3c197a2dee

View File

@@ -174,7 +174,6 @@ bool NimToolChain::fromMap(const QVariantMap &data)
bool NimToolChain::parseVersion(const FileName &path, std::tuple<int, int, int> &result)
{
QProcess process;
process.setReadChannel(QProcess::StandardError);
process.start(path.toString(), {"--version"});
if (!process.waitForFinished())
return false;