about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build.zig7
1 files changed, 7 insertions, 0 deletions
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,
         }),