From 1fb90511164c379ffbbb6b97f3d3cc2019c4592a Mon Sep 17 00:00:00 2001 From: 3405691582 Date: Thu, 21 Aug 2025 21:54:32 -0400 Subject: [PATCH] Tests link with libutil for openpty on OpenBSD. One of the tests refers to openpty, which requires linking with libutil on OpenBSD. --- Package.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 80db6076c..a1e16b1e8 100644 --- a/Package.swift +++ b/Package.swift @@ -139,7 +139,10 @@ let package = Package( "_Testing_WinSDK", "MemorySafeTestingTests", ], - swiftSettings: .packageSettings + swiftSettings: .packageSettings, + linkerSettings: [ + .linkedLibrary("util", .when(platforms: [.openbsd])) + ] ), // Use a plain `.target` instead of a `.testTarget` to avoid the unnecessary