diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-31 15:34:48 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-31 15:34:48 +0200 |
commit | ee59520dbf725718fcd5bc6bec99645f08bbd1dd (patch) | |
tree | a59b111e094f7346ef2d0dfefff3ff1b4ee62239 | |
parent | 846736deea196786386cf1c0ac9a54c667102386 (diff) |
build: Fix module not being exported
-rw-r--r-- | build.zig | 8 | ||||
-rw-r--r-- | build.zig.zon | 2 |
2 files changed, 2 insertions, 8 deletions
@@ -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. |