summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2018-12-03 18:26:16 -0800
committerGitHub <noreply@github.com>2018-12-03 18:26:16 -0800
commit6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8 (patch)
tree5b343da66f58c7fff1fbcd401dcec3e913ea49ff /src/pass.h
parent99cad87cea463fc3b978850a1d1416d9b338a14c (diff)
downloadbinaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.tar.gz
binaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.tar.bz2
binaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.zip
Feature options (#1797)
Add feature flags and struct interface. Default feature set has all feature enabled.
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pass.h b/src/pass.h
index 8064edc32..0a3d85e02 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -63,7 +63,7 @@ struct PassOptions {
int shrinkLevel = 0; // 0, 1, 2 correspond to -O0, -Os, -Oz
bool ignoreImplicitTraps = false; // optimize assuming things like div by 0, bad load/store, will not trap
bool debugInfo = false; // whether to try to preserve debug info through, which are special calls
- FeatureSet features = Feature::MVP; // Which wasm features to accept, and be allowed to use
+ FeatureSet features = FeatureSet::All; // Which wasm features to accept, and be allowed to use
void setDefaultOptimizationOptions() {
// -Os is our default