From b332d87a6a1029e36effd41f64fa6cf199ee0005 Mon Sep 17 00:00:00 2001 From: dantecatalfamo Date: Sat, 17 Jun 2023 01:26:33 -0400 Subject: [PATCH] Move Options struct --- src/build.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/build.zig b/src/build.zig index e54c37b05..422b9f0b4 100644 --- a/src/build.zig +++ b/src/build.zig @@ -1,11 +1,5 @@ const std = @import("std"); -const Options = struct { - raygui: bool = false, - raymath: bool = false, - physac: bool = false, -}; - // This has been tested to work with zig master branch as of commit 87de821 or May 14 2023 pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode, options: Options) *std.Build.CompileStep { const raylib_flags = &[_][]const u8{ @@ -131,6 +125,12 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built return raylib; } +const Options = struct { + raygui: bool = false, + raymath: bool = false, + physac: bool = false, +}; + pub fn build(b: *std.Build) void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which