Skip to content

Commit ea7420d

Browse files
committed
Fix CI
1 parent f8eb94c commit ea7420d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build.zig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,21 @@ fn addMainExe(
870870
copy_cross_int_host.addCopyFileToSource(cross_int_host_lib.getEmittedBin(), b.pathJoin(&.{ "test/int/platform/targets", cross_target.name, "libhost.a" }));
871871
b.getInstallStep().dependOn(&copy_cross_int_host.step);
872872

873+
// Create cross-compiled str host library
874+
const cross_str_host_lib = createTestPlatformHostLib(
875+
b,
876+
b.fmt("test_platform_str_host_{s}", .{cross_target.name}),
877+
"test/str/platform/host.zig",
878+
cross_resolved_target,
879+
optimize,
880+
roc_modules,
881+
);
882+
883+
// Copy to target-specific directory
884+
const copy_cross_str_host = b.addUpdateSourceFiles();
885+
copy_cross_str_host.addCopyFileToSource(cross_str_host_lib.getEmittedBin(), b.pathJoin(&.{ "test/str/platform/targets", cross_target.name, "libhost.a" }));
886+
b.getInstallStep().dependOn(&copy_cross_str_host.step);
887+
873888
// Generate glibc stubs for gnu targets
874889
if (cross_target.query.abi == .gnu) {
875890
const glibc_stub = generateGlibcStub(b, cross_resolved_target, cross_target.name);

0 commit comments

Comments
 (0)