From 0f74e59f4b258868959104b24fdf6c43071e11ad Mon Sep 17 00:00:00 2001 From: paoda Date: Fri, 22 Mar 2024 12:25:29 -0500 Subject: [PATCH] Revert "Merge pull request #159 from Jack-Ji/master" temporary since I work in Zig v2024.1.0-mach This reverts commit 4dbb0609a04e3536a9e6760ea2bd474523691877, reversing changes made to 39fb8355cccb45a241a891c4848ab925af20fee4. --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 8993696..6ee0e5a 100644 --- a/build.zig +++ b/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - const sdl_linkage = b.option(std.builtin.LinkMode, "link", "Defines how to link SDL2 when building with mingw32") orelse .dynamic; + const sdl_linkage = b.option(std.Build.Step.Compile.Linkage, "link", "Defines how to link SDL2 when building with mingw32") orelse .dynamic; const skip_tests = b.option(bool, "skip-test", "When set, skips the test suite to be run. This is required for cross-builds") orelse false; @@ -249,7 +249,7 @@ pub fn linkTtf(_: *Sdk, exe: *Compile) void { /// Links SDL2 to the given exe and adds required installs if necessary. /// **Important:** The target of the `exe` must already be set, otherwise the Sdk will do the wrong thing! -pub fn link(sdk: *Sdk, exe: *Compile, linkage: std.builtin.LinkMode) void { +pub fn link(sdk: *Sdk, exe: *Compile, linkage: Compile.Linkage) void { // TODO: Implement const b = sdk.build;