summaryrefslogtreecommitdiff
path: root/src/tools/wasm-opt.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-11-30 08:45:29 -0800
committerGitHub <noreply@github.com>2018-11-30 08:45:29 -0800
commitf16a7605b8226502062c6ca24323d431669c90ec (patch)
tree325a9184c5b1c562fd27bc89ad1a35b951cd34f9 /src/tools/wasm-opt.cpp
parent955a9a9440f26438ba50e35ebe57a86a5111d4a1 (diff)
downloadbinaryen-f16a7605b8226502062c6ca24323d431669c90ec.tar.gz
binaryen-f16a7605b8226502062c6ca24323d431669c90ec.tar.bz2
binaryen-f16a7605b8226502062c6ca24323d431669c90ec.zip
Add support for a mutable globals as a Feature (#1785)
This picks up from #1644 and indeed borrows the test case from there.
Diffstat (limited to 'src/tools/wasm-opt.cpp')
-rw-r--r--src/tools/wasm-opt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp
index 7d35efeab..421bcca59 100644
--- a/src/tools/wasm-opt.cpp
+++ b/src/tools/wasm-opt.cpp
@@ -137,6 +137,8 @@ int main(int argc, const char* argv[]) {
// It should be safe to just always enable atomics in wasm-opt, because we
// don't expect any passes to accidentally generate atomic ops
FeatureSet features = Feature::Atomics;
+ // Same for MutableGlobals
+ features |= Feature::MutableGlobals;
if (options.debug) std::cerr << "reading...\n";