Skip to content

Providing target option for emcc #4841

Closed
@chicoxyzzy

Description

@chicoxyzzy

Is it possible to provide another way to build HTML?

Looks like currently it's not possible to use -o option with file target using other tools like cargo.

$ cargo rustc --target=wasm32-unknown-emscripten -- -o wasm.html
   Compiling wasm-test3 v0.1.0 (file:///Users/Chico/Projects/wasm-test3)
warning: ignoring specified output filename because multiple outputs were requested

warning: ignoring --out-dir flag due to -o flag.

Would be great to have a way to do something like

cargo rustc --target=wasm32-unknown-emscripten -- --compile_html

ref cross-rs/cross#36 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions