Skip to content

Commit

Permalink
set for windows target msvc abi only (new target config)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Jan 6, 2024
1 parent 60d7e5f commit 49cc049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ pub fn build(b: *Builder) !void {
var target = b.standardTargetOptions(.{});

// ldc2 w/ druntime + phobos2 works on MSVC
if (builtin.os.tag == .windows and target.query.isNative())
target.query.abi = .msvc;
if (builtin.os.tag == .windows or target.query.isNative())
target.result.abi = .msvc;

const optimize = b.standardOptimizeOption(.{});
const sokol = buildSokol(b, target, optimize, config, "");
Expand Down

0 comments on commit 49cc049

Please sign in to comment.