diff options
| author | 2021-10-05 23:23:00 +0200 | |
|---|---|---|
| committer | 2021-10-05 23:23:00 +0200 | |
| commit | 8adad19e0406fcdebb346a24eb2262dff57fb6b4 (patch) | |
| tree | 305098a3f1637bb85b89a1c15330b935b509e40f /build.zig | |
| parent | Merge pull request #55 from vrischmann/fix-readme (diff) | |
| download | zig-sqlite-8adad19e0406fcdebb346a24eb2262dff57fb6b4.tar.gz zig-sqlite-8adad19e0406fcdebb346a24eb2262dff57fb6b4.tar.xz zig-sqlite-8adad19e0406fcdebb346a24eb2262dff57fb6b4.zip | |
build: fix for latest zig
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,4 +1,5 @@ | |||
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | ||
| 2 | 3 | ||
| 3 | var sqlite3: ?*std.build.LibExeObjStep = null; | 4 | var sqlite3: ?*std.build.LibExeObjStep = null; |
| 4 | 5 | ||
| @@ -44,8 +45,8 @@ const TestTarget = struct { | |||
| 44 | bundled: bool, | 45 | bundled: bool, |
| 45 | }; | 46 | }; |
| 46 | 47 | ||
| 47 | const all_test_targets = switch (std.Target.current.cpu.arch) { | 48 | const all_test_targets = switch (builtin.target.cpu.arch) { |
| 48 | .x86_64 => switch (std.Target.current.os.tag) { | 49 | .x86_64 => switch (builtin.target.os.tag) { |
| 49 | .linux => [_]TestTarget{ | 50 | .linux => [_]TestTarget{ |
| 50 | TestTarget{ | 51 | TestTarget{ |
| 51 | .target = .{}, | 52 | .target = .{}, |