Skip to content

Commit 00bb5ac

Browse files
authored
Implement CommandLine.executablePath on all Apple platforms. (#934)
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.) ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent ff27a80 commit 00bb5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Support/Additions/CommandLineAdditions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension CommandLine {
1414
/// The path to the current process' executable.
1515
static var executablePath: String {
1616
get throws {
17-
#if os(macOS)
17+
#if SWT_TARGET_OS_APPLE
1818
var result: String?
1919
#if DEBUG
2020
var bufferCount = UInt32(1) // force looping

0 commit comments

Comments
 (0)