From b3e4d55b223b19c1c3179357861ca1b43c61e9df Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 16 Sep 2022 14:17:13 -0500 Subject: Temporarily restore the typed-function-references flags as no-ops (#5050) This allows a three-step upgrade process where binaryen is updated with this change, then users remove their use of these flags, then binaryen can remove the flags permanently. --- src/tools/tool-options.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src') diff --git a/src/tools/tool-options.h b/src/tools/tool-options.h index 8709fb07f..14cbf4aba 100644 --- a/src/tools/tool-options.h +++ b/src/tools/tool-options.h @@ -94,6 +94,26 @@ struct ToolOptions : public Options { .addFeature(FeatureSet::ExtendedConst, "extended const expressions") .addFeature(FeatureSet::Strings, "strings") .addFeature(FeatureSet::MultiMemories, "multi-memories") + .add("--enable-typed-function-references", + "", + "Deprecated compatibility flag", + ToolOptionsCategory, + Options::Arguments::Zero, + [](Options* o, const std::string& argument) { + std::cerr + << "Warning: Typed function references have been made part of " + "GC and --enable-typed-function-references is deprecated\n"; + }) + .add("--disable-typed-function-references", + "", + "Deprecated compatibility flag", + ToolOptionsCategory, + Options::Arguments::Zero, + [](Options* o, const std::string& argument) { + std::cerr + << "Warning: Typed function references have been made part of " + "GC and --disable-typed-function-references is deprecated\n"; + }) .add("--no-validation", "-n", "Disables validation, assumes inputs are correct", -- cgit v1.2.3