mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
build: allow specifying -mexec-model flag.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
parent
f0176eec4a
commit
bbb96e112c
@ -1432,6 +1432,7 @@ pub const LibExeObjStep = struct {
|
||||
single_threaded: bool,
|
||||
test_evented_io: bool = false,
|
||||
code_model: builtin.CodeModel = .default,
|
||||
wasi_exec_model: ?builtin.WasiExecModel = null,
|
||||
|
||||
root_src: ?FileSource,
|
||||
out_h_filename: []const u8,
|
||||
@ -2549,6 +2550,9 @@ pub const LibExeObjStep = struct {
|
||||
try zig_args.append("-mcmodel");
|
||||
try zig_args.append(@tagName(self.code_model));
|
||||
}
|
||||
if (self.wasi_exec_model) |model| {
|
||||
try zig_args.append(builder.fmt("-mexec-model={s}", .{@tagName(model)}));
|
||||
}
|
||||
|
||||
if (!self.target.isNative()) {
|
||||
try zig_args.append("-target");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user