forked from qt-creator/qt-creator
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:
@@ -128,18 +128,6 @@ WebAssemblyToolChain::WebAssemblyToolChain() :
|
||||
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()
|
||||
{
|
||||
setDisplayName(tr("WebAssembly"));
|
||||
|
@@ -35,9 +35,6 @@ class WebAssemblyToolChain final : public ProjectExplorer::ClangToolChain
|
||||
public:
|
||||
void addToEnvironment(Utils::Environment &env) const override;
|
||||
|
||||
protected:
|
||||
bool fromMap(const QVariantMap &data) override;
|
||||
|
||||
private:
|
||||
WebAssemblyToolChain();
|
||||
|
||||
|
Reference in New Issue
Block a user