Skip to content

Suggestion: Add way to compile only the js wrapper, and not the .wasm #8506

@Taytay

Description

@Taytay

I am compiling the same .wasm file, but multiple wrappers for different environments (one for the web worker environment, another for the web/node environment). I see that I can tell emcc to only generate the wasm without the wrapper, but I don't see a way to tell it either:
A) Fetch this particular .wasm file at runtime (because WASM_BINARY_FILE is internal only)
B) Only generate the .js wrapper because I've already generated a .wasm file elsewhere.

Am I missing something? Is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions