Commit 59e2844b authored by Tobias Hunger's avatar Tobias Hunger

Gcc: Fix wrong path

Task-number: QTCREATORBUG-6890
Change-Id: I8c8a39e5bb61b11f03eb970fbeb9538a47cd8c0f
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 5bb2fecb
......@@ -392,8 +392,10 @@ QList<HeaderPath> GccToolChain::systemHeaderPaths() const
void GccToolChain::addToEnvironment(Utils::Environment &env) const
{
if (!m_compilerCommand.isEmpty())
env.prependOrSetPath(m_compilerCommand.toString());
if (!m_compilerCommand.isEmpty()) {
Utils::FileName path = m_compilerCommand.parentDir();
env.prependOrSetPath(path.toString());
}
}
void GccToolChain::setDebuggerCommand(const Utils::FileName &d)
......
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