Skip to content

How to build "wasm_static_lib" with "minimal_build"? #20140

@Ucag

Description

@Ucag

I'm doing a project with onnxruntime-web with pure c++.

I've tried minimal build with wasm, it works fine. However, when I build it with "--build_wasm_static_lib" the "libonnxruntime_webassembly.a" is too large (about 73M) which is not acceptable. It seems that minimal build not working for static lib. If I build with "--build_wasm", the size reduces to 1.2M.

How can I reduce the size of "libonnxruntime_webassembly.a" when I offerring a config of ORT model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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