From d404ccd2256542bf540c135ae6ad9376df44e684 Mon Sep 17 00:00:00 2001 From: Sage Hane Date: Mon, 21 Oct 2024 12:44:52 +0900 Subject: [PATCH] build.zig: Update entry point --- build.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build.zig b/build.zig index 5fdab8d79..56e69caf4 100644 --- a/build.zig +++ b/build.zig @@ -15,14 +15,9 @@ comptime { // get the flags a second time when adding raygui var raylib_flags_arr: std.ArrayListUnmanaged([]const u8) = .{}; -/// we're not inside the actual build script recognized by the -/// zig build system; use this type where one would otherwise -/// use `@This()` when inside the actual entrypoint file. -const BuildScript = @import("../build.zig"); - // This has been tested with zig version 0.12.0 pub fn addRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, options: Options) !*std.Build.Step.Compile { - const raylib_dep = b.dependencyFromBuildZig(BuildScript, .{ + const raylib_dep = b.dependencyFromBuildZig(@This(), .{ .target = target, .optimize = optimize, .raudio = options.raudio,