Commit ca805445 authored by Tobias Hunger's avatar Tobias Hunger

ToolChain: Add Compiler:Executable to CurrentKit macro expander

Change-Id: I4452accb3d3fbb3f42467ed0869705bffd3c56dd
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 08641790
......@@ -212,6 +212,12 @@ void ToolChainKitInformation::addToMacroExpander(Kit *kit, Utils::MacroExpander
const ToolChain *tc = toolChain(kit);
return tc ? tc->displayName() : tr("None");
});
expander->registerVariable("Compiler:Executable", tr("Path to the compiler executable"),
[this, kit]() -> QString {
const ToolChain *tc = toolChain(kit);
return tc ? tc->compilerCommand().toString() : QString();
});
}
......
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