From 48223439f1da4f6c6fc27db447bc196959162879 Mon Sep 17 00:00:00 2001 From: Baitinq <30861839+Baitinq@users.noreply.github.com> Date: Sat, 17 May 2025 19:33:43 +0200 Subject: Misc: Add support for building on windows --- build.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.zig b/build.zig index 73e0c76..780c0e2 100644 --- a/build.zig +++ b/build.zig @@ -36,6 +36,13 @@ pub fn build(b: *std.Build) !void { .use_pkg_config = .no, }); }, + .windows => { + exe_mod.addLibraryPath(.{ .cwd_relative = "C:\\Program Files\\LLVM\\lib" }); + exe_mod.addIncludePath(.{ .cwd_relative = "C:\\Program Files\\LLVM\\include" }); + exe_mod.linkSystemLibrary("LLVM-C", .{ + .use_pkg_config = .no, + }); + }, else => exe_mod.linkSystemLibrary("LLVM", .{ .use_pkg_config = .no, }), -- cgit 1.4.1