Commit 92c6ee49 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

GCC: Do not try to start non-executable gccs

This stops a warning from appearing in the application output about
not being able to start a compiler.
parent 866beee3
......@@ -65,7 +65,7 @@ static const char debuggerCommandKeyC[] = "ProjectExplorer.GccToolChain.Debugger
static QByteArray runGcc(const QString &gcc, const QStringList &arguments, const QStringList &env)
{
if (gcc.isEmpty())
if (gcc.isEmpty() || !QFileInfo(gcc).isExecutable())
return QByteArray();
QProcess cpp;
......
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