summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-02-12 10:51:34 -0400
committerGravatar Jose Colon Rodriguez2024-02-12 10:51:34 -0400
commitbfb31cbc33716220b42bb398471840a4fbed0d89 (patch)
tree3f3614621f34f066bd192ce93d3f82810205e5ca /build.zig
parentCreated Trie (diff)
downloadzg-bfb31cbc33716220b42bb398471840a4fbed0d89.tar.gz
zg-bfb31cbc33716220b42bb398471840a4fbed0d89.tar.xz
zg-bfb31cbc33716220b42bb398471840a4fbed0d89.zip
Using Trie super slow
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 bb0a33b..af6ce10 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);