Commit 015bb14e authored by Tobias Hunger's avatar Tobias Hunger

GccToolChain: Improve addCommandPathToEnvironment

Use logic more similar to

Change-Id: I24935cc354f136b19ec71afd6e8a4d795446db4e
Reviewed-by: Eike Ziller's avatarEike Ziller <>
parent 10cb0b77
......@@ -710,8 +710,9 @@ QList<HeaderPath> GccToolChain::systemHeaderPaths(const QStringList &cxxflags,
void GccToolChain::addCommandPathToEnvironment(const FileName &command, Environment &env)
if (!command.isEmpty())
const Utils::FileName compilerDir = command.parentDir();
if (!compilerDir.isEmpty())
GccToolChain::GccToolChain(const GccToolChain &) = default;
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