ToolChain: Make sure all ToolChains have a language set

* Add code to toolchains
* Assert that this is the case in the toolchainmanager

Change-Id: I82452689e83279fd9d1afb3140b0070bef9b6cd8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-07-12 12:20:06 +02:00
parent dbf5f74352
commit 1304b250eb
14 changed files with 53 additions and 27 deletions

View File

@@ -355,6 +355,7 @@ void IosConfigurations::setDeveloperPath(const FileName &devPath)
static ClangToolChain *createToolChain(const Platform &platform)
{
ClangToolChain *toolChain = new ClangToolChain(ToolChain::AutoDetection);
toolChain->setLanguage(ToolChain::Language::Cxx);
toolChain->setDisplayName(platform.name);
toolChain->setPlatformCodeGenFlags(platform.backendFlags);
toolChain->setPlatformLinkerFlags(platform.backendFlags);