summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-09-16 14:17:13 -0500
committerGitHub <noreply@github.com>2022-09-16 19:17:13 +0000
commitb3e4d55b223b19c1c3179357861ca1b43c61e9df (patch)
tree8fbb2f9e265c820086732dfbd5f3efc4ac797e33 /src
parentd797c751df60aa5731a0cfaed1cc00811a5e273b (diff)
downloadbinaryen-b3e4d55b223b19c1c3179357861ca1b43c61e9df.tar.gz
binaryen-b3e4d55b223b19c1c3179357861ca1b43c61e9df.tar.bz2
binaryen-b3e4d55b223b19c1c3179357861ca1b43c61e9df.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/tools/tool-options.h20
1 files changed, 20 insertions, 0 deletions
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",