Skip to content

Add option for preserving function order? #8864

Description

@matthew-mojira

We are working on a project in Wizard that handles the earliest functions in a Wasm module specially. Unfortunately wasm-opt seems to reorder all the functions. Some of our functions really need to be first. We noticed that there is a --preserve-type-order option, which helps our use case, but we need something similar for functions. Is this something that could be added to binaryen? @titzer

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