WebAssembly / binaryen

Optimizer and compiler/toolchain library for WebAssembly
Apache License 2.0
7.4k stars 729 forks source link

asm2wasm: Unknown option '--no-legalize-javascript-ffi' #1032

Open sbalko opened 7 years ago

sbalko commented 7 years ago

Not sure if this is an emscripten or Binaryen issue. But I have tried to compile a C/C++ stack using the latest incoming (1.37.13) emscripten, emscripten-fastcomp, emscripten-fastcomp-clang toolchain using emscripten's -s LEGALIZE_JS_FFI=0 flag. As a result, the asm2wasm binary complains:

 Unknown option '--no-legalize-javascript-ffi'
kripken commented 7 years ago

That sounds like a version mismatch, using an older binaryen. Perhaps you set BINARYEN to point to an older version in ~/.emscripten? Also, any warnings when you do emcc -v?

When I test 1.37.13 (without any value set for BINARYEN, so it uses the default), it works.