aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/ObjCopy.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-08-30 16:59:48 +0200
committerLuuk de Gram <luuk@degram.dev>2023-11-03 12:48:52 +0100
commit1cb7a01b25349c42dbe207b68f9e19b92890b3d2 (patch)
tree602589918ad620910c8462711492e1ffff6c2826 /lib/std/Build/Step/ObjCopy.zig
parent94cee4fb27a433824c2540dc37375dc14befdf47 (diff)
downloadzig-1cb7a01b25349c42dbe207b68f9e19b92890b3d2.tar.gz
zig-1cb7a01b25349c42dbe207b68f9e19b92890b3d2.zip
wasm-linker: implement `-fno-entry` flag
This adds support for the `-fno-entry` and `-fentry` flags respectively, for zig build-{exe/lib} and the build system. For `zig cc` we use the `--no-entry` flag to be compatible with clang and existing tooling. In `start.zig` we now make the main function optional when the target is WebAssembly, as to allow for the build-exe command in combination with `-fno-entry`. When the execution model is set, and is set to 'reactor', we now verify when an entry name is given it matches what is expected. When no entry point is given, we set it to `_initialize` by default. This means the user will also be met with an error when they use the reactor model, but did not provide the correct function.
Diffstat (limited to 'lib/std/Build/Step/ObjCopy.zig')
0 files changed, 0 insertions, 0 deletions