-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Add support for WASI reactor in pure Zig-exe. #9178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
e026efd
80b5918
8d110f9
6769659
85b5503
943f656
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,20 @@ pub fn emulatedLibCRFileLibName(crt_file: CRTFile) []const u8 { | |
}; | ||
} | ||
|
||
pub fn crtFileFullName(crt_file: CRTFile) []const u8 { | ||
return switch (crt_file) { | ||
pub fn getExecModelCRTFIle(wasi_exec_model: ?[]const u8) CRTFile { | ||
mathetake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
return if (wasi_exec_model) |model| | ||
if (std.mem.eql(u8, model, "reactor")) | ||
CRTFile.crt1_reactor_o | ||
else if (std.mem.eql(u8, model, "command")) | ||
CRTFile.crt1_command_o | ||
else | ||
unreachable | ||
else | ||
CRTFile.crt1_o; | ||
|
||
} | ||
|
||
pub fn execModelCRTFileFullName(wasi_exec_model: ?[]const u8) []const u8 { | ||
return switch (getExecModelCRTFIle(wasi_exec_model)) { | ||
.crt1_o => "crt1.o", | ||
.crt1_reactor_o => "crt1-reactor.o", | ||
.crt1_command_o => "crt1-command.o", | ||
|
Uh oh!
There was an error while loading. Please reload this page.