Something went wrong. Try again.
mach object system isolated and ported to 0.15.2
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738const std = @import("std");
pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("objects", .{ .root_source_file = b.path("src/objects.zig"), .target = target, .optimize = optimize, });
const exe = b.addExecutable(.{ .name = "example", .root_module = b.createModule(.{ .root_source_file = b.path("example/main.zig"), .target = target, .optimize = optimize, .imports = &.{ .{ .name = "objects", .module = mod }, }, }), });
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); }}