Skip to content

Commit

Permalink
Revert "Merge pull request MasterQ32#159 from Jack-Ji/master"
Browse files Browse the repository at this point in the history
temporary since I work in Zig v2024.1.0-mach

This reverts commit 4dbb060, reversing
changes made to 39fb835.
  • Loading branch information
paoda committed Mar 22, 2024
1 parent 711c308 commit 0f74e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0f74e59

Please sign in to comment.