Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Builder = @import("std").build.Builder;
- pub fn build(b: *Builder) void {
- const mode = b.standardReleaseOptions();
- var t = b.addTest("test.zig");
- t.linkSystemLibrary("c");
- t.linkSystemLibrary("z");
- const test_step = b.step("test", "Run all tests");
- test_step.dependOn(&t.step);
- const build_lib = b.addStaticLibrary("zigutils", "src/index.zig");
- build_lib.setOutputPath("./zigutils");
- const build_lib_step = b.step("library", "Build static library");
- build_lib_step.dependOn(&build_lib.step);
- b.default_step.dependOn(build_lib_step);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement