WebAssembly: Remove ToolChain::fromMap hack

GccToolChain::fromMap does not filter anymore.

Change-Id: I0e76703ef1074b4d50999a72b1f598856627de74
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2019-08-01 17:06:57 +02:00
committed by Alessandro Portale
parent 09e5c167bd
commit 71e9e3832a
2 changed files with 0 additions and 15 deletions

View File

@@ -128,18 +128,6 @@ WebAssemblyToolChain::WebAssemblyToolChain() :
setTypeDisplayName(typeAndDisplayName); setTypeDisplayName(typeAndDisplayName);
} }
bool WebAssemblyToolChain::fromMap(const QVariantMap &data)
{
if (!ClangToolChain::fromMap(data))
return false;
// TODO: HACK: GccToolChain::fromMap() filters out abis with UnknownOS. Re-add it, here.
if (supportedAbis().isEmpty())
setSupportedAbis({toolChainAbi()});
return true;
}
WebAssemblyToolChainFactory::WebAssemblyToolChainFactory() WebAssemblyToolChainFactory::WebAssemblyToolChainFactory()
{ {
setDisplayName(tr("WebAssembly")); setDisplayName(tr("WebAssembly"));

View File

@@ -35,9 +35,6 @@ class WebAssemblyToolChain final : public ProjectExplorer::ClangToolChain
public: public:
void addToEnvironment(Utils::Environment &env) const override; void addToEnvironment(Utils::Environment &env) const override;
protected:
bool fromMap(const QVariantMap &data) override;
private: private:
WebAssemblyToolChain(); WebAssemblyToolChain();