summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-03-14 18:23:59 -0700
committerGitHub <noreply@github.com>2019-03-14 18:23:59 -0700
commitfc085c0971029bd5fe2bf66074c467f304dfc1e4 (patch)
tree5859683dc65e7487e8be8db9979cb5611d7485c9 /src/tools
parentd9cdee0437ebee89377d361e5a9320b44f252152 (diff)
downloadbinaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.tar.gz
binaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.tar.bz2
binaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.zip
Add strip-target-features pass (#1946)
And run it in wasm-emscripten-finalize. This will prevent the emscripten output from changing when the target features section lands in LLVM.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/wasm-emscripten-finalize.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/wasm-emscripten-finalize.cpp b/src/tools/wasm-emscripten-finalize.cpp
index 6e898b3f0..2aa5de46f 100644
--- a/src/tools/wasm-emscripten-finalize.cpp
+++ b/src/tools/wasm-emscripten-finalize.cpp
@@ -204,6 +204,7 @@ int main(int argc, const char *argv[]) {
legalizeJavaScriptFFI ? ABI::LegalizationLevel::Full
: ABI::LegalizationLevel::Minimal
));
+ passRunner.add("strip-target-features");
passRunner.run();
}