summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-01-04 00:58:42 +0100
committerGravatar Vincent Rischmann2022-01-04 00:58:43 +0100
commitb77453146b36299ace10da06f2d54264e0b3d376 (patch)
treecaf8b2ca454fc88a32655b5adcdc97667478cf5f
parentbuild: add a windows cross-compilation test target (diff)
downloadzig-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.
Diffstat (limited to '')
-rw-r--r--build.zig15
1 files changed, 15 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 7b2e46f..4448396 100644
--- a/build.zig
+++ b/build.zig
@@ -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{