From 6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Mon, 3 Dec 2018 18:26:16 -0800 Subject: Feature options (#1797) Add feature flags and struct interface. Default feature set has all feature enabled. --- src/pass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pass.h') 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 -- cgit v1.2.3