diff options
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 3 | ||||
| -rw-r--r-- | build.zig.zon | 11 |
2 files changed, 1 insertions, 13 deletions
diff --git a/build.zig b/build.zig index 328429e..45fafa1 100644 --- a/build.zig +++ b/build.zig @@ -26,8 +26,7 @@ pub fn build(b: *std.Build) !void { .optimize = optimize, }); - const llvm_zig = b.dependency("llvm-zig", .{}); - exe_mod.addImport("llvm", llvm_zig.module("llvm")); + exe_mod.linkSystemLibrary("llvm", .{}); // This creates another `std.Build.Step.Compile`, but this one builds an executable // rather than a static library. diff --git a/build.zig.zon b/build.zig.zon index 74f22e4..ccd1f60 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -17,17 +17,6 @@ // with this value. //.minimum_zig_version = "0.11.0", - // This field is optional. - // Each dependency must either provide a `url` and `hash`, or a `path`. - // `zig build --fetch` can be used to fetch all dependencies of a package, recursively. - // Once all dependencies are fetched, `zig build` no longer requires - // internet connectivity. - .dependencies = .{ - .@"llvm-zig" = .{ - .url = "git+https://github.com/kassane/llvm-zig/?ref=HEAD#6ce7ef4efcd9ef07e0ad98c37378e8828a8eb5d8", - .hash = "122031a83c60af77e52e9a958e16ececdec5c4c3a13390463b4e5823cfb35f31228f", - }, - }, .paths = .{ "build.zig", "build.zig.zon", |