Is it possible to build/compile Opus/libopus with optimization using Emscripten?I'm unsure if this is a current limitation of Emscripten and WebAssembly in general or if options exist to ensure the decoder is optimized in WebAssembly (wasm).
I receive the following warning below for
opus_decoder:
CC src/opus_decoder.lo
src/opus_decoder.c:37:10: warning: You appear to be compiling without optimization, if so
opus will be very slow. [-W#pragma-messages]
This warning is not produced when compiling Opus normally without the Emscripten wrappers:
$ ./configure --disable-intrinsics --disable-rtcd
$ make
The warning is introduced when wrapping:
$ emconfigure ./configure --disable-intrinsics --disable-rtcd
$ emmake make
Using:
- emcc 1.37.35
- Opus v1.3-beta - also tested today's master (
d01199b)
CFLAGStomakeorconfigurelike$ emconfigure ./configure --disable-intrinsics --disable-rtcd CFLAGS='-O2'- Gray