From 094d369341a3145229fd67c0e599f9868ba5fab7 Mon Sep 17 00:00:00 2001 From: XXIV <13811862+thechampagne@users.noreply.github.com> Date: Fri, 29 Sep 2023 06:09:31 +0300 Subject: [PATCH 1/2] create module --- build.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.zig b/build.zig index 3e6f13b..4c9cdd9 100644 --- a/build.zig +++ b/build.zig @@ -6,6 +6,11 @@ pub fn build(b: *std.build.Builder) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); + _ = b.addModule("Linalgebra", .{ + .source_file = .{ .path = "src/main.zig" }, + .dependencies = &[_]std.Build.ModuleDependency{}, + }); + const lib = b.addStaticLibrary(.{ .name = "Linalgebra", .root_source_file = .{ .path = "src/main.zig" }, From 7b71a31bd93612bc3ee00117ed0d81414576c4f3 Mon Sep 17 00:00:00 2001 From: XXIV <13811862+thechampagne@users.noreply.github.com> Date: Fri, 29 Sep 2023 06:10:36 +0300 Subject: [PATCH 2/2] remove unnecessary step --- build.zig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/build.zig b/build.zig index 4c9cdd9..e322fe7 100644 --- a/build.zig +++ b/build.zig @@ -11,14 +11,6 @@ pub fn build(b: *std.build.Builder) void { .dependencies = &[_]std.Build.ModuleDependency{}, }); - const lib = b.addStaticLibrary(.{ - .name = "Linalgebra", - .root_source_file = .{ .path = "src/main.zig" }, - .target = target, - .optimize = optimize, - }); - b.installArtifact(lib); - const main_tests = b.addTest(.{ .root_source_file = .{ .path = "src/main.zig" }, .target = target,