| author | |
| committer | |
| log | 5bd838ca3428a4ede13c5c5c94b36e7b93510bc2 |
| tree | fa0318fe1706c33e014d4249c8f73cd978b1fe2f |
| parent | faae55bc0cc2a19c39c9faacbcf34a326ddb7779 |
| signature |
2 files changed, 5 insertions(+), 2 deletions(-)
build.zig+1-1| ... | @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void { | ... | @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void { |
| 14 | }), | 14 | }), |
| 15 | }); | 15 | }); |
| 16 | deps.addAllTo(tests); | 16 | deps.addAllTo(tests); |
| 17 | tests.linkLibC(); | 17 | tests.root_module.link_libc = true; |
| 18 | tests.use_llvm = !disable_llvm; | 18 | tests.use_llvm = !disable_llvm; |
| 19 | tests.use_lld = !disable_llvm; | 19 | tests.use_lld = !disable_llvm; |
| 20 | b.getInstallStep().dependOn(&tests.step); | 20 | b.getInstallStep().dependOn(&tests.step); |
test.zig+4-1| ... | @@ -5,7 +5,10 @@ const extras = @import("extras"); | ... | @@ -5,7 +5,10 @@ const extras = @import("extras"); |
| 5 | const nio = @import("nio"); | 5 | const nio = @import("nio"); |
| 6 | 6 | ||
| 7 | test { | 7 | test { |
| 8 | std.testing.refAllDeclsRecursive(pek); | 8 | const doc = comptime pek.parse( |
| 9 | \\html[lang="en"]() | ||
| 10 | ); | ||
| 11 | _ = try pek.compile(struct {}, std.testing.allocator, nio.NullWriter{}, doc, {}); | ||
| 9 | } | 12 | } |
| 10 | 13 | ||
| 11 | test "document" { | 14 | test "document" { |