diff options
| author | Takeshi Yoneda <takeshi@tetrate.io> | 2021-06-09 17:07:06 +0900 |
|---|---|---|
| committer | Takeshi Yoneda <takeshi@tetrate.io> | 2021-06-09 17:07:06 +0900 |
| commit | bf568ec62a06fcea5f09c725529635425f1b8a76 (patch) | |
| tree | e30c6d3a7e773aa3a6ad0818c27a8c315475c2e8 /src/link.zig | |
| parent | a6ae5a77dac6466617cdf57357aa79c2b79403b3 (diff) | |
| download | zig-bf568ec62a06fcea5f09c725529635425f1b8a76.tar.gz zig-bf568ec62a06fcea5f09c725529635425f1b8a76.zip | |
cc,wasi: support WASI reactors via -mexec-model flag.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index 4072e90ca3..534b39ebbb 100644 --- a/src/link.zig +++ b/src/link.zig @@ -118,6 +118,9 @@ pub const Options = struct { version: ?std.builtin.Version, libc_installation: ?*const LibCInstallation, + /// WASI-only. Type of WASI execution model ("command" or "reactor"). + wasi_exec_model: ?Compilation.WasiExecModel = null, + pub fn effectiveOutputMode(options: Options) std.builtin.OutputMode { return if (options.use_lld) .Obj else options.output_mode; } |
