Update project_setup.ps1 for Zig 0.15.1

This commit is contained in:
stanchyk7 2025-08-23 21:22:29 +00:00 committed by Nikolas
parent 492e809dd5
commit 55937dd8a9

View File

@ -50,7 +50,7 @@ pub fn build(b: *std.Build) !void {
return;
}
const exe = b.addExecutable(.{ .name = "$PROJECT_NAME", .root_source_file = b.path("src/main.zig"), .optimize = optimize, .target = target });
const exe = b.addExecutable(.{ .name = "$PROJECT_NAME", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .optimize = optimize, .target = target }) });
exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib);