diff options
| author | Baitinq <[email protected]> | 2025-05-17 19:33:43 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-17 19:33:43 +0200 |
| commit | 48223439f1da4f6c6fc27db447bc196959162879 (patch) | |
| tree | 2ec9a87c801a0e28e4db4895bc228e473a6fae42 /build.zig | |
| parent | Bootstrap: Tokenizer: Tokenize identifiers (diff) | |
| download | pry-lang-48223439f1da4f6c6fc27db447bc196959162879.tar.gz pry-lang-48223439f1da4f6c6fc27db447bc196959162879.tar.bz2 pry-lang-48223439f1da4f6c6fc27db447bc196959162879.zip | |
Misc: Add support for building on windows
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
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, }), |