aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/RunStep.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-03-02 19:04:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-03 12:43:12 -0500
commit2834b937f143aa80e3730706dac5ff44cea3a67d (patch)
tree7c30f364da78b2738adbfb4cb392e2228dd1553d /lib/std/Build/RunStep.zig
parent6be5946ed8026f2a7ae990aced9572f229acecf4 (diff)
downloadzig-2834b937f143aa80e3730706dac5ff44cea3a67d.tar.gz
zig-2834b937f143aa80e3730706dac5ff44cea3a67d.zip
link: give executable bit to wasm executables sometimes
Give +x to the .wasm file if it is an executable and the OS is WASI. Some systems may be configured to execute such binaries directly. Even if that is not the case, it means we will get "exec format error" when trying to run it rather than "access denied", and then can react to that in the same way as trying to run an ELF file from a foreign CPU architecture. This is part of the strategy to unify RunStep and EmulatableRunStep.
Diffstat (limited to 'lib/std/Build/RunStep.zig')
0 files changed, 0 insertions, 0 deletions