Skip to content

Commit b09ce32

Browse files
committed
Throw in unimplemented cases of exec
The `exec` function was missing an `#else` branch which prohibited compilation on some platforms, this adds a fatal error on platforms where we have no implementation.
1 parent 9c8fa82 commit b09ce32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TSCBasic/misc.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ public func exec(path: String, args: [String]) throws -> Never {
163163
throw SystemError.exec(errno, path: path, args: args)
164164
}
165165
fatalError("unreachable")
166+
#else
167+
fatalError("not implemented")
166168
#endif
167169
}
168170

0 commit comments

Comments
 (0)