aboutsummaryrefslogtreecommitdiff
path: root/examples/create_process/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/create_process/build.zig')
-rw-r--r--examples/create_process/build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/create_process/build.zig b/examples/create_process/build.zig
index a52bd17..c8efa7c 100644
--- a/examples/create_process/build.zig
+++ b/examples/create_process/build.zig
@@ -25,6 +25,11 @@ pub fn build(b: *std.Build) void {
// set a preferred release mode, allowing the user to decide how to optimize.
const optimize = b.standardOptimizeOption(.{});
+ const srvre_sys = b.dependency("srvre_sys", .{
+ .target = target,
+ .optimize = optimize,
+ });
+
const exe2 = b.addExecutable(.{
.name = "program2",
.root_source_file = b.path("src/main2.zig"),
@@ -38,6 +43,9 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
+ exe2.root_module.addImport("srvre_sys", srvre_sys.module("srvre_sys"));
+ exe.root_module.addImport("srvre_sys", srvre_sys.module("srvre_sys"));
+
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
// step when running `zig build`).