Compare commits
	
		
			2 commits
		
	
	
		
			44bbf996bd
			...
			d231728c92
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d231728c92 | |||
| f7351aadab | 
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -14,6 +14,11 @@ 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,
 | 
				
			||||||
| 
						 | 
					@ -21,12 +26,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 = target,
 | 
					        .target = b.graph.host,
 | 
				
			||||||
        .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_dep.module("treez"));
 | 
					    ts_bin_query_gen.root_module.addImport("treez", tree_sitter_host_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");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,6 +59,7 @@ 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 {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue