summary refs log tree commit diff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index ea79181..328429e 100644
--- a/build.zig
+++ b/build.zig
@@ -26,6 +26,9 @@ pub fn build(b: *std.Build) !void {
         .optimize = optimize,
     });
 
+    const llvm_zig = b.dependency("llvm-zig", .{});
+    exe_mod.addImport("llvm", llvm_zig.module("llvm"));
+
     // This creates another `std.Build.Step.Compile`, but this one builds an executable
     // rather than a static library.
     const exe = b.addExecutable(.{
@@ -42,7 +45,7 @@ pub fn build(b: *std.Build) !void {
     const exe_check = b.addExecutable(.{
         .name = "interpreter-lsp",
         .root_source_file = b.path("src/main.zig"),
-        .target = target,
+        .root_module = exe_mod,
         .optimize = optimize,
     });