Update project_setup.sh for Zig 0.15.1

This commit is contained in:
stanchyk7 2025-08-23 21:20:36 +00:00 committed by Nikolas
parent 178530d5f5
commit 492e809dd5

View File

@ -51,7 +51,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);