-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-xp.zig
More file actions
28 lines (24 loc) · 735 Bytes
/
Copy pathbuild-xp.zig
File metadata and controls
28 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const std = @import("std");
pub fn build(b: *std.Build) void {
// Windows XP x86 target
const target = b.resolveTargetQuery(.{
.cpu_arch = .x86,
.os_tag = .windows,
.os_version_min = .{ .windows = .xp },
.os_version_max = .{ .windows = .latest },
.abi = .gnu,
});
const exe = b.addExecutable(.{
.name = "agentxp",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = .ReleaseSmall,
.strip = true,
.single_threaded = true,
}),
});
exe.stack_size = 16 * 1024 * 1024;
exe.subsystem = .Console;
b.installArtifact(exe);
}