From 49cc0499af3d7c654e619c2b9158f543f26c583c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= Date: Sat, 6 Jan 2024 14:55:32 -0300 Subject: [PATCH] set for windows target msvc abi only (new target config) --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index f8a0608..82598ad 100644 --- a/build.zig +++ b/build.zig @@ -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, "");