V 0.13.dev Problème Build.LaZyPatch

version 0.13.dev

error

	// Definition of module
	const match = b.createModule(.{
		.root_source_file = .{ .path = "./deps/curse/match.zig"},
	});
	match.addIncludePath(.{.path = "./lib/"});

/home/soleil/Zterm/src-zig/buildGencurs.zig:26:27: error: no field named ‘path’ in union ‘Build.LazyPath’
.root_source_file = .{ .path = “./deps/curse/match.zig”},
^~~~
/home/soleil/.zig/lib/std/Build.zig:2133:22: note: union declared here
pub const LazyPath = union(enum) {
^~~~~
referenced by:
runBuild__anon_8817: /home/soleil/.zig/lib/std/Build.zig:2078:27
main: /home/soleil/.zig/lib/compiler/build_runner.zig:301:29
remaining reference traces hidden; use ‘-freference-trace’ to see all reference traces

solution:

	const match = b.createModule(.{
		.root_source_file = b.path("./deps/curse/match.zig"),
	});
	match.addIncludePath(b.path( "./lib/"));

thank you exemple https://github.com/zigtools/zls/blob/master/build.zig

1 Like