aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorTakeshi Yoneda <takeshi@tetrate.io>2021-07-01 09:02:48 +0900
committerGitHub <noreply@github.com>2021-06-30 20:02:48 -0400
commitbc7761d8e0bb70adb3c76c588f9f0b62937c6571 (patch)
tree571b5b93cd6611d458cb728198b9796cff9da3ac /lib/std/builtin.zig
parenta95ba0d10d582020dbd3e6efded53f17287ed211 (diff)
downloadzig-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 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 615df9b9af..7bf60f5283 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -459,6 +459,13 @@ pub const LinkMode = enum {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
+pub const WasiExecModel = enum {
+ command,
+ reactor,
+};
+
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
pub const Version = struct {
major: u32,
minor: u32,