diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ pub fn build(b: *std.Build) void { // only contains e.g. external object files, you can make this `null`. // 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/libzisp.zig"), + .root_source_file = b.path("src/zisp.zig"), .target = target, .optimize = optimize, }); @@ -42,14 +42,14 @@ pub fn build(b: *std.Build) void { // Modules can depend on one another using the `std.Build.Module.addImport` function. // This is what allows Zig source code to use `@import("foo")` where 'foo' is not a // file path. In this case, we set up `exe_mod` to import `lib_mod`. - exe_mod.addImport("libzisp", lib_mod); + exe_mod.addImport("zisp", lib_mod); // Now, we will create a static library based on the module we created above. // This creates a `std.Build.Step.Compile`, which is the build step responsible // for actually invoking the compiler. const lib = b.addLibrary(.{ .linkage = .static, - .name = "libzisp", + .name = "zisp", .root_module = lib_mod, }); |
