aboutsummaryrefslogtreecommitdiff
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
parent846736deea196786386cf1c0ac9a54c667102386 (diff)
build: Fix module not being exported
-rw-r--r--build.zig8
-rw-r--r--build.zig.zon2
2 files changed, 2 insertions, 8 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(.{
diff --git a/build.zig.zon b/build.zig.zon
index 1bc1b5b..494579c 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -10,7 +10,7 @@
//
// It is redundant to include "zig" in this name because it is already
// within the Zig package namespace.
- .name = "sys",
+ .name = "srvre_sys",
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.