| author | |
| committer | |
| log | a7c82884f054e255aa9f4de2b7a84be572f48196 |
| tree | 53e5726792cdabf8923ae81ed9fcfaf53e3a8b32 |
| parent | abb4775126543c1054a05f547884775919f275d0 |
| signature |
3 files changed, 7 insertions(+), 9 deletions(-)
build.zig+6-4| ... | ... | @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); |
| 3 | 3 | |
| 4 | 4 | pub fn build(b: *std.Build) void { |
| 5 | 5 | const target = b.standardTargetOptions(.{}); |
| 6 | const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; | |
| 6 | const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug; | |
| 7 | 7 | const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false; |
| 8 | 8 | |
| 9 | 9 | const tests = b.addTest(.{ |
| 10 | .root_source_file = b.path("test.zig"), | |
| 11 | .target = target, | |
| 12 | .optimize = mode, | |
| 10 | .root_module = b.createModule(.{ | |
| 11 | .root_source_file = b.path("test.zig"), | |
| 12 | .target = target, | |
| 13 | .optimize = mode, | |
| 14 | }), | |
| 13 | 15 | }); |
| 14 | 16 | deps.addAllTo(tests); |
| 15 | 17 | tests.use_llvm = !disable_llvm; |
licenses.txt-3| ... | ... | @@ -3,17 +3,14 @@ MIT: |
| 3 | 3 | - This |
| 4 | 4 | - git https://github.com/nektro/zig-expect |
| 5 | 5 | - git https://github.com/nektro/zig-extras |
| 6 | - git https://github.com/nektro/zig-json | |
| 7 | 6 | - git https://github.com/nektro/zig-leven |
| 8 | 7 | - git https://github.com/nektro/zig-licenses-text |
| 9 | 8 | - git https://github.com/nektro/zig-sys-darwin |
| 10 | 9 | - git https://github.com/nektro/zig-sys-linux |
| 11 | 10 | - git https://github.com/nektro/zig-time |
| 12 | - git https://github.com/nektro/zig-tracer | |
| 13 | 11 | |
| 14 | 12 | MPL-2.0: |
| 15 | 13 | = https://spdx.org/licenses/MPL-2.0 |
| 16 | - git https://github.com/nektro/zig-intrusive-parser | |
| 17 | 14 | - git https://github.com/nektro/zig-nfs |
| 18 | 15 | - git https://github.com/nektro/zig-nio |
| 19 | 16 |
test.zig+1-2| ... | ... | @@ -13,7 +13,6 @@ test { |
| 13 | 13 | } |
| 14 | 14 | test { |
| 15 | 15 | const alloc = std.testing.allocator; |
| 16 | const dir = std.fs.cwd(); | |
| 17 | const license = try detect.detectInDir(alloc, dir); | |
| 16 | const license = try detect.detectInDir(alloc, .cwd()); | |
| 18 | 17 | try expect(license).toEqualString("MIT"); |
| 19 | 18 | } |