diff options
| author | Takeshi Yoneda <takeshi@tetrate.io> | 2021-07-01 09:02:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 20:02:48 -0400 |
| commit | bc7761d8e0bb70adb3c76c588f9f0b62937c6571 (patch) | |
| tree | 571b5b93cd6611d458cb728198b9796cff9da3ac /src/link.zig | |
| parent | a95ba0d10d582020dbd3e6efded53f17287ed211 (diff) | |
| download | zig-bc7761d8e0bb70adb3c76c588f9f0b62937c6571.tar.gz zig-bc7761d8e0bb70adb3c76c588f9f0b62937c6571.zip | |
Add support for WASI reactor in pure Zig-exe. (#9178)
* Add command line help for "-mexec-model"
* Define WasmExecModel enum in std.builtin.
* Drop the support for the old crt1.o in favor of crt1-command.o
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig index 3bbd542a15..d429a1b459 100644 --- a/src/link.zig +++ b/src/link.zig @@ -116,7 +116,7 @@ pub const Options = struct { libc_installation: ?*const LibCInstallation, /// WASI-only. Type of WASI execution model ("command" or "reactor"). - wasi_exec_model: ?wasi_libc.CRTFile = null, + wasi_exec_model: std.builtin.WasiExecModel = undefined, pub fn effectiveOutputMode(options: Options) std.builtin.OutputMode { return if (options.use_lld) .Obj else options.output_mode; |
