WebAssembly: Fix the missing auto-detected "C" toolchain

By not setting the toolchain language twice.

Change-Id: Id7058662047f451dcc524151aa5ff7cec854b9d3
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2020-09-23 00:20:26 +02:00
parent a003a2e9f3
commit a001944321

View File

@@ -138,7 +138,6 @@ WebAssemblyToolChain::WebAssemblyToolChain() :
const CompilerConfiguration configuration = compilerConfiguration();
const QString command = configuration.llvmRoot.toString()
+ Utils::HostOsInfo::withExecutableSuffix("/clang");
setLanguage(ProjectExplorer::Constants::CXX_LANGUAGE_ID);
setCompilerCommand(Utils::FilePath::fromString(command));
setSupportedAbis({toolChainAbi()});
setTargetAbi(toolChainAbi());