Skip to content

Commit 37f85f7

Browse files
committed
Add visionOS to the list of platforms that can't start a new process from swift-parser-cli
* **Explanation**: `Process` is not available on visionOS, causing a build failure of swift-syntax 509.x.x for that platform when building the `swift-parser-cli` command line test utility. We should use the same `#if` check that we have for iOS, tvOS and watchOS to also guard the process spawning code on visionOS. * **Scope**: Building the swift-parser-cli target on visionOS. Building commonly used products like SwiftSyntax and SwiftParser is fine * **Risk**: Very low, treat visionOS the same as iOS * **Testing**: Tested that the swift-syntax package now builds for visionOS * **Issue**: n/a * **Reviewer**: @bnbarham
1 parent d0a2288 commit 37f85f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-parser-cli/Commands/Reduce.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct Reduce: ParsableCommand {
6666
/// Invoke `swift-parser-cli verify-round-trip` with the same arguments as this `reduce` subcommand.
6767
/// Returns the exit code of the invocation.
6868
private func runVerifyRoundTripInSeparateProcess(source: [UInt8]) throws -> ProcessExit {
69-
#if os(iOS) || os(tvOS) || os(watchOS)
69+
#if os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
7070
// We cannot launch a new process on iOS-like platforms.
7171
// Default to running verification in-process.
7272
// Honestly, this isn't very important because you can't launch swift-parser-cli

0 commit comments

Comments
 (0)