Skip to content

Commit c9ee697

Browse files
committed
test: Add FreeBSD targets to module test matrix.
std tests are temporarily disabled for arm-freebsd-eabihf due to ziglang#23949. I omitted x86-freebsd-none and powerpc-freebsd-none because these will be dropped in FreeBSD 15.0 anyway, so there's no point in us spending resources on those now.
1 parent fb3a9fc commit c9ee697

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

test/tests.zig

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,100 @@ const test_targets = blk: {
9898
.link_libc = true,
9999
},
100100

101+
// FreeBSD Targets
102+
103+
.{
104+
.target = .{
105+
.cpu_arch = .aarch64,
106+
.os_tag = .freebsd,
107+
// Remove this when we bump our baseline to 14.0.0.
108+
.os_version_min = .{ .semver = .{
109+
.major = 14,
110+
.minor = 0,
111+
.patch = 0,
112+
} },
113+
.abi = .none,
114+
},
115+
.link_libc = true,
116+
},
117+
118+
.{
119+
.target = .{
120+
.cpu_arch = .arm,
121+
.os_tag = .freebsd,
122+
// Remove this when we bump our baseline to 14.0.0.
123+
.os_version_min = .{ .semver = .{
124+
.major = 14,
125+
.minor = 0,
126+
.patch = 0,
127+
} },
128+
.abi = .eabihf,
129+
},
130+
.link_libc = true,
131+
// https://github.com/ziglang/zig/issues/23949
132+
.skip_modules = &.{"std"},
133+
},
134+
135+
.{
136+
.target = .{
137+
.cpu_arch = .powerpc64,
138+
.os_tag = .freebsd,
139+
// Remove this when we bump our baseline to 14.0.0.
140+
.os_version_min = .{ .semver = .{
141+
.major = 14,
142+
.minor = 0,
143+
.patch = 0,
144+
} },
145+
.abi = .none,
146+
},
147+
.link_libc = true,
148+
},
149+
150+
.{
151+
.target = .{
152+
.cpu_arch = .powerpc64le,
153+
.os_tag = .freebsd,
154+
// Remove this when we bump our baseline to 14.0.0.
155+
.os_version_min = .{ .semver = .{
156+
.major = 14,
157+
.minor = 0,
158+
.patch = 0,
159+
} },
160+
.abi = .none,
161+
},
162+
.link_libc = true,
163+
},
164+
165+
.{
166+
.target = .{
167+
.cpu_arch = .riscv64,
168+
.os_tag = .freebsd,
169+
// Remove this when we bump our baseline to 14.0.0.
170+
.os_version_min = .{ .semver = .{
171+
.major = 14,
172+
.minor = 0,
173+
.patch = 0,
174+
} },
175+
.abi = .none,
176+
},
177+
.link_libc = true,
178+
},
179+
180+
.{
181+
.target = .{
182+
.cpu_arch = .x86_64,
183+
.os_tag = .freebsd,
184+
// Remove this when we bump our baseline to 14.0.0.
185+
.os_version_min = .{ .semver = .{
186+
.major = 14,
187+
.minor = 0,
188+
.patch = 0,
189+
} },
190+
.abi = .none,
191+
},
192+
.link_libc = true,
193+
},
194+
101195
// Linux Targets
102196

103197
.{

0 commit comments

Comments
 (0)