We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e933e commit 6aee135Copy full SHA for 6aee135
Sources/swift-test/Entrypoint.swift
@@ -18,9 +18,9 @@ private import Darwin.C
18
@main
19
struct Entrypoint {
20
static func main() async throws {
21
+#if canImport(Darwin.C)
22
// HACK: use the swift-test executable as a host for the .xctest bundle
23
// when running Swift Testing tests.
-#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
24
let args = CommandLine.arguments
25
if args.count >= 3, args[1] == "--test-bundle-path" {
26
let bundlePath = args[2]
0 commit comments