Skip to content

Commit 6aee135

Browse files
committed
Correct canImport
1 parent d5e933e commit 6aee135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-test/Entrypoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ private import Darwin.C
1818
@main
1919
struct Entrypoint {
2020
static func main() async throws {
21+
#if canImport(Darwin.C)
2122
// HACK: use the swift-test executable as a host for the .xctest bundle
2223
// when running Swift Testing tests.
23-
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
2424
let args = CommandLine.arguments
2525
if args.count >= 3, args[1] == "--test-bundle-path" {
2626
let bundlePath = args[2]

0 commit comments

Comments
 (0)