adding macOS CTS
Mirror Gitea refs to GitHub / mirror (push) Successful in 17s
Test / build_and_test (push) Successful in 1m37s
Build / build (push) Successful in 1m55s

This commit is contained in:
2026-08-31 15:47:46 +02:00
parent 416cf32ef9
commit 1519256add
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -257,12 +257,17 @@ pub fn build(b: *std.Build) !void {
}
fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const ImplementationDesc, impl_lib: *Step.Compile, comptime mode: RunningMode) !*Step {
const arch = if (target.query.cpu_arch) |arch| arch else builtin.cpu.arch;
if (!arch.isX86())
return error.NoCTSForPlatform;
const cts = b.dependency("cts_bin", .{});
const cts_exe_name = cts.path(b.fmt("deqp-vk-{s}", .{
switch (if (target.query.os_tag) |tag| tag else builtin.target.os.tag) {
.linux => "linux.x86_64",
.windows => "windows.exe",
.macos => "macos.x86_64",
else => return error.NoCTSForPlatform,
},
}));
@@ -334,12 +339,17 @@ fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const Implemen
}
fn addMultithreadedCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const ImplementationDesc, impl_lib: *Step.Compile, comptime mode: RunningMode) !*Step {
const arch = if (target.query.cpu_arch) |arch| arch else builtin.cpu.arch;
if (!arch.isX86())
return error.NoCTSForPlatform;
const cts = b.dependency("cts_bin", .{});
const cts_exe_name = cts.path(b.fmt("deqp-vk-{s}", .{
switch (if (target.query.os_tag) |tag| tag else builtin.target.os.tag) {
.linux => "linux.x86_64",
.windows => "windows.exe",
.macos => "macos.x86_64",
else => return error.NoCTSForPlatform,
},
}));