diff options
| -rw-r--r-- | build.zig | 9 | ||||
| -rw-r--r-- | src/root.zig | 2 |
2 files changed, 3 insertions, 8 deletions
@@ -2,7 +2,7 @@ const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - //const optimize = b.standardOptimizeOption(.{}); + //const optimize = b.standardOptimizeOption(.{}); const mod = b.addModule("typdown", .{ .root_source_file = b.path("src/root.zig"), @@ -20,25 +20,20 @@ pub fn build(b: *std.Build) void { // }, // }), //}); - //b.installArtifact(exe); //const run_step = b.step("run", "Run the app"); - //const run_cmd = b.addRunArtifact(exe); - //run_step.dependOn(&run_cmd.step); - //run_cmd.step.dependOn(b.getInstallStep()); //if (b.args) |args| { // run_cmd.addArgs(args); //} - + const mod_tests = b.addTest(.{ .root_module = mod, }); - const run_mod_tests = b.addRunArtifact(mod_tests); //const exe_tests = b.addTest(.{ diff --git a/src/root.zig b/src/root.zig index 8e90eb0..00ba5a5 100644 --- a/src/root.zig +++ b/src/root.zig @@ -1,5 +1,5 @@ const std = @import("std"); -const lexer = @import("lexer/lexer.zig"); +pub const lexer = @import("lexer/lexer.zig"); pub fn bufferedPrint() !void { // Stdout is for the actual output of your application, for example if you |
