Advertisement
Guest User

Untitled

a guest
Jun 27th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. const Builder = @import("std").build.Builder;
  2.  
  3. pub fn build(b: *Builder) void {
  4. const mode = b.standardReleaseOptions();
  5.  
  6. var t = b.addTest("test.zig");
  7. t.linkSystemLibrary("c");
  8. t.linkSystemLibrary("z");
  9. const test_step = b.step("test", "Run all tests");
  10. test_step.dependOn(&t.step);
  11.  
  12. const build_lib = b.addStaticLibrary("zigutils", "src/index.zig");
  13. build_lib.setOutputPath("./zigutils");
  14. const build_lib_step = b.step("library", "Build static library");
  15. build_lib_step.dependOn(&build_lib.step);
  16.  
  17. b.default_step.dependOn(build_lib_step);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement