diff --git a/project_setup.sh b/project_setup.sh index b15e01f..eb374f3 100755 --- a/project_setup.sh +++ b/project_setup.sh @@ -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);