about summary refs log tree commit diff
path: root/build.zig
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-23 23:25:41 +0100
committerBaitinq <[email protected]>2025-01-23 23:25:41 +0100
commit571700ddbbda7266620bc0718ae29d626a205e3e (patch)
tree788031d228541e1f9fe3b3aa243ef1f825565259 /build.zig
parentMisc: Create codegen stub (diff)
downloadpry-lang-571700ddbbda7266620bc0718ae29d626a205e3e.tar.gz
pry-lang-571700ddbbda7266620bc0718ae29d626a205e3e.tar.bz2
pry-lang-571700ddbbda7266620bc0718ae29d626a205e3e.zip
Misc: Add llvm zig bindings and dependency
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index ea79181..f4db0c9 100644
--- a/build.zig
+++ b/build.zig
@@ -33,6 +33,9 @@ pub fn build(b: *std.Build) !void {
         .root_module = exe_mod,
     });
 
+    const llvm_zig = b.dependency("llvm-zig", .{});
+    exe.root_module.addImport("llvm", llvm_zig.module("llvm"));
+
     // This declares intent for the executable to be installed into the
     // standard location when the user invokes the "install" step (the default
     // step when running `zig build`).