On 02/10/2018 01:43,
sha...@infograph.com wrote:
> Hello, I am new to WebAssembly and Emscriptem.
> I am converting a large C/C++ project (hundreds of source files) to WASM.
> I see how I can compile every source file to a bitcode file:
>
> emcc -O3 hello.c -o hello.bc
> emcc -O3 foo.c -o foo.bc
> emcc -O3 bar.c -o bar.bc
>
> When I link them into a wasm, js, html set of output files, it looks
> like this:
>
> emcc -O3 -s WASM=1 hello.bc foo.bc bar.bc -o hello.html
>
> But what if I have more than 3 bitcode files? What if I have over 700?
> That won't fit on the commandline.
> I tried using a wildcard:
>
> emcc -O3 -s WASM=1 *.bc -o hello.html
>
> but that gave an error.