From d2a38e9c2952ec4b003a5ba58f70fc21fcf088c5 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Mon, 12 Feb 2024 19:04:50 -0400 Subject: Flat array --- build.zig | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index af6ce10..bb0a33b 100644 --- a/build.zig +++ b/build.zig @@ -6,15 +6,15 @@ pub fn build(b: *std.Build) void { const ziglyph = b.dependency("ziglyph", .{}); - // const gen_exe = b.addExecutable(.{ - // .name = "gen", - // .root_source_file = .{ .path = "src/gbp_gen.zig" }, - // .target = target, - // .optimize = optimize, - // }); - // gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); - // const run_gen_exe = b.addRunArtifact(gen_exe); - // const gen_out = run_gen_exe.addOutputFileArg("gbp.zig"); + const gen_exe = b.addExecutable(.{ + .name = "gen", + .root_source_file = .{ .path = "src/gbp_gen.zig" }, + .target = target, + .optimize = optimize, + }); + gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); + const run_gen_exe = b.addRunArtifact(gen_exe); + const gen_out = run_gen_exe.addOutputFileArg("gbp.zig"); const exe = b.addExecutable(.{ .name = "zgbench", @@ -23,7 +23,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); - // exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gen_out }); + exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gen_out }); b.installArtifact(exe); const run_cmd = b.addRunArtifact(exe); -- cgit v1.2.3