Implement Bytecode Executor for Kym #19

Merged
kayomn merged 9 commits from kym-bytecode-executor into main 2023-07-12 02:58:03 +02:00
2 changed files with 18 additions and 5 deletions
Showing only changes of commit 7b266fde58 - Show all commits

View File

@ -18,17 +18,27 @@ pub fn build(b: *std.Build) void {
});
b.installArtifact(create: {
const runner_exe = b.addExecutable(.{
const compile_step = b.addExecutable(.{
.name = "runner",
.root_source_file = .{ .path = "source/runner.zig" },
.target = target,
.optimize = optimize,
});
runner_exe.addModule("ona", ona_module);
runner_exe.linkLibC();
runner_exe.linkSystemLibrary("SDL2");
compile_step.addModule("ona", ona_module);
compile_step.linkLibC();
compile_step.linkSystemLibrary("SDL2");
break: create runner_exe;
break: create compile_step;
});
b.step("test", "Run unit tests").dependOn(create: {
const tests = b.addTest(.{
.root_source_file = .{.path = "source/test.zig"},
.target = target,
.optimize = optimize,
});
break: create &tests.step;
});
}

3
source/test.zig Normal file
View File

@ -0,0 +1,3 @@
const coral = @import("coral");
const ona = @import("ona");