Skip to content

Multiple list-like settings should get merged instead of overriding each other #19058

Open
@RReverser

Description

@RReverser

While working on .NET stuff, we noticed that currently having multiple -sEXPORTED_FUNCTIONS means that whichever is last, wins, which is not great when you want to pass an export file generated by tooling + statically some extra functions that need to be always exported. For example, if you specify:

-s EXPORTED_FUNCTIONS=@some.exports -s EXPORTED_FUNCTIONS=_OneMoreExport

Then today only OneMoreExport will end up exported and file ignored; if you change the order, the opposite happens.

It would be more useful for them to get merged instead. While chatting to @sbc100 about this idea, he suggested that the same should probably apply to other list-like settings too, e.g. ASYNCIFY_IMPORTS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions