diff options
| author | 2022-01-04 00:58:42 +0100 | |
|---|---|---|
| committer | 2022-01-04 00:58:43 +0100 | |
| commit | b77453146b36299ace10da06f2d54264e0b3d376 (patch) | |
| tree | caf8b2ca454fc88a32655b5adcdc97667478cf5f | |
| parent | build: add a windows cross-compilation test target (diff) | |
| download | zig-sqlite-b77453146b36299ace10da06f2d54264e0b3d376.tar.gz zig-sqlite-b77453146b36299ace10da06f2d54264e0b3d376.tar.xz zig-sqlite-b77453146b36299ace10da06f2d54264e0b3d376.zip | |
build: add a macOS cross-compilation test target
The tests _may_ run with darling with `zig build -fdarling test`, but I
haven't tested that yet.
| -rw-r--r-- | build.zig | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -110,6 +110,21 @@ const all_test_targets = switch (builtin.target.cpu.arch) { | |||
| 110 | }, | 110 | }, |
| 111 | .bundled = true, | 111 | .bundled = true, |
| 112 | }, | 112 | }, |
| 113 | // Targets macOS | ||
| 114 | TestTarget{ | ||
| 115 | .target = .{ | ||
| 116 | .cpu_arch = .x86_64, | ||
| 117 | .os_tag = .macos, | ||
| 118 | }, | ||
| 119 | .bundled = true, | ||
| 120 | }, | ||
| 121 | TestTarget{ | ||
| 122 | .target = .{ | ||
| 123 | .cpu_arch = .aarch64, | ||
| 124 | .os_tag = .macos, | ||
| 125 | }, | ||
| 126 | .bundled = true, | ||
| 127 | }, | ||
| 113 | }, | 128 | }, |
| 114 | .windows => [_]TestTarget{ | 129 | .windows => [_]TestTarget{ |
| 115 | TestTarget{ | 130 | TestTarget{ |