Compare commits

..

No commits in common. "d231728c92cb3c5a7139cb0d75a321a119b8e777" and "44bbf996bd74ae536b11195e9d4db8410e2ca249" have entirely different histories.

2 changed files with 2 additions and 8 deletions

View file

@ -14,11 +14,6 @@ pub fn build(b: *std.Build) void {
.optimize = optimize, .optimize = optimize,
}); });
const tree_sitter_host_dep = b.dependency("tree_sitter", .{
.target = b.graph.host,
.optimize = optimize,
});
const cbor_dep = b.dependency("cbor", .{ const cbor_dep = b.dependency("cbor", .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
@ -26,12 +21,12 @@ pub fn build(b: *std.Build) void {
const ts_bin_query_gen = b.addExecutable(.{ const ts_bin_query_gen = b.addExecutable(.{
.name = "ts_bin_query_gen", .name = "ts_bin_query_gen",
.target = b.graph.host, .target = target,
.root_source_file = b.path("src/ts_bin_query_gen.zig"), .root_source_file = b.path("src/ts_bin_query_gen.zig"),
}); });
ts_bin_query_gen.linkLibC(); ts_bin_query_gen.linkLibC();
ts_bin_query_gen.root_module.addImport("cbor", cbor_dep.module("cbor")); ts_bin_query_gen.root_module.addImport("cbor", cbor_dep.module("cbor"));
ts_bin_query_gen.root_module.addImport("treez", tree_sitter_host_dep.module("treez")); ts_bin_query_gen.root_module.addImport("treez", tree_sitter_dep.module("treez"));
ts_bin_query_gen.root_module.addImport("build_options", options_mod); ts_bin_query_gen.root_module.addImport("build_options", options_mod);
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "queries/cmake/highlights.scm"); ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "queries/cmake/highlights.scm");

View file

@ -59,7 +59,6 @@ pub fn main() anyerror!void {
} }
try output_file.writeAll(output.items); try output_file.writeAll(output.items);
std.log.info("file_types total {d} bytes", .{output.items.len});
} }
fn fatal(comptime format: []const u8, args: anytype) noreturn { fn fatal(comptime format: []const u8, args: anytype) noreturn {