summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-02-12 19:04:50 -0400
committerGravatar Jose Colon Rodriguez2024-02-12 19:04:50 -0400
commitd2a38e9c2952ec4b003a5ba58f70fc21fcf088c5 (patch)
tree7b48d02e3505af142128c484fe76b7aee9091cf9 /build.zig
parentUsing Trie super slow (diff)
downloadzg-d2a38e9c2952ec4b003a5ba58f70fc21fcf088c5.tar.gz
zg-d2a38e9c2952ec4b003a5ba58f70fc21fcf088c5.tar.xz
zg-d2a38e9c2952ec4b003a5ba58f70fc21fcf088c5.zip
Flat array
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig20
1 files changed, 10 insertions, 10 deletions
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 {
6 6
7 const ziglyph = b.dependency("ziglyph", .{}); 7 const ziglyph = b.dependency("ziglyph", .{});
8 8
9 // const gen_exe = b.addExecutable(.{ 9 const gen_exe = b.addExecutable(.{
10 // .name = "gen", 10 .name = "gen",
11 // .root_source_file = .{ .path = "src/gbp_gen.zig" }, 11 .root_source_file = .{ .path = "src/gbp_gen.zig" },
12 // .target = target, 12 .target = target,
13 // .optimize = optimize, 13 .optimize = optimize,
14 // }); 14 });
15 // gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); 15 gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph"));
16 // const run_gen_exe = b.addRunArtifact(gen_exe); 16 const run_gen_exe = b.addRunArtifact(gen_exe);
17 // const gen_out = run_gen_exe.addOutputFileArg("gbp.zig"); 17 const gen_out = run_gen_exe.addOutputFileArg("gbp.zig");
18 18
19 const exe = b.addExecutable(.{ 19 const exe = b.addExecutable(.{
20 .name = "zgbench", 20 .name = "zgbench",
@@ -23,7 +23,7 @@ pub fn build(b: *std.Build) void {
23 .optimize = optimize, 23 .optimize = optimize,
24 }); 24 });
25 exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); 25 exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph"));
26 // exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gen_out }); 26 exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gen_out });
27 b.installArtifact(exe); 27 b.installArtifact(exe);
28 28
29 const run_cmd = b.addRunArtifact(exe); 29 const run_cmd = b.addRunArtifact(exe);