Skip to content

wasm32-unknown-unknown target should not make output executable #65872

@joshtriplett

Description

@joshtriplett

The wasm32-unknown-unknown target sets the executable bit on the compiled .wasm file. Most uses of wasm don't execute the wasm file directly, and without special configuration (such as binfmt-misc on Linux), most operating systems can't directly run wasm files. Furthermore, the executable bit set on the output tends to get checked into git repositories.

For the wasm32-unknown-unknown target, we should not set the executable bit on the output file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    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