From ea2de009dc080dd0e3e42e662aa7329a0b434588 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Tue, 28 Jan 2025 14:44:36 -0500 Subject: [PATCH] Implement `CommandLine.executablePath` on all Apple platforms. This change just makes sure `CommandLine.executablePath` is implemented consistently across Apple platforms and doesn't hit the unimplemented/warning path on e.g. iOS. (We're not using this property there, but the source file it lives in gets compiled regardless.) --- Sources/Testing/Support/Additions/CommandLineAdditions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Testing/Support/Additions/CommandLineAdditions.swift b/Sources/Testing/Support/Additions/CommandLineAdditions.swift index 0fda59839..57d9851a8 100644 --- a/Sources/Testing/Support/Additions/CommandLineAdditions.swift +++ b/Sources/Testing/Support/Additions/CommandLineAdditions.swift @@ -14,7 +14,7 @@ extension CommandLine { /// The path to the current process' executable. static var executablePath: String { get throws { -#if os(macOS) +#if SWT_TARGET_OS_APPLE var result: String? #if DEBUG var bufferCount = UInt32(1) // force looping