forked from qt-creator/qt-creator
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:
@@ -174,7 +174,6 @@ bool NimToolChain::fromMap(const QVariantMap &data)
|
|||||||
bool NimToolChain::parseVersion(const FileName &path, std::tuple<int, int, int> &result)
|
bool NimToolChain::parseVersion(const FileName &path, std::tuple<int, int, int> &result)
|
||||||
{
|
{
|
||||||
QProcess process;
|
QProcess process;
|
||||||
process.setReadChannel(QProcess::StandardError);
|
|
||||||
process.start(path.toString(), {"--version"});
|
process.start(path.toString(), {"--version"});
|
||||||
if (!process.waitForFinished())
|
if (!process.waitForFinished())
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user