aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-31 15:34:48 +0200
committerHimbeer <himbeer@disroot.org>2024-07-31 15:34:48 +0200
commitee59520dbf725718fcd5bc6bec99645f08bbd1dd (patch)
treea59b111e094f7346ef2d0dfefff3ff1b4ee62239 /build.zig
parent846736deea196786386cf1c0ac9a54c667102386 (diff)
build: Fix module not being exported
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index 01429a6..193f461 100644
--- a/build.zig
+++ b/build.zig
@@ -20,8 +20,7 @@ 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 lib = b.addStaticLibrary(.{
- .name = "sys",
+ _ = b.addModule("srvre_sys", .{
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = b.path("src/root.zig"),
@@ -29,11 +28,6 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
- // This declares intent for the library to be installed into the standard
- // location when the user invokes the "install" step (the default step when
- // running `zig build`).
- b.installArtifact(lib);
-
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const lib_unit_tests = b.addTest(.{