Skip to content

std.build: support -mexec-model flag for WASI target #9308

Closed
@mathetake

Description

@mathetake

Now that -mexec-model option is introduced in #9178, I would like to set the option in build.zig but I realized that current std.build does not allow me to pass the flag via build.zig.

So I think we have two options to achieve this:

  1. add the dedicated method in std.build to set the flag just like -mcode-model flag,
  2. add more generic method in std.build for passing arbitrary flag to zig_args

before I work on a PR, I would like to hear maintainers' opinion here. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions