Skip to content

Commit 92f6329

Browse files
authored
Enable FoundationMacrosTests on Windows (#1432)
1 parent 2f24d16 commit 92f6329

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Package.swift

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,13 @@ let package = Package(
206206
.enableExperimentalFeature("AccessLevelOnImport")
207207
] + availabilityMacros + featureSettings
208208
),
209+
210+
.testTarget(
211+
name: "FoundationMacrosTests",
212+
dependencies: [
213+
"FoundationMacros"
214+
],
215+
swiftSettings: availabilityMacros + featureSettings + testOnlySwiftSettings
216+
)
209217
]
210218
)
211-
212-
// https://github.com/apple/swift-package-manager/issues/7174
213-
// Test macro targets result in multiple definitions of `main` on Windows.
214-
#if !os(Windows)
215-
package.targets.append(contentsOf: [
216-
.testTarget(
217-
name: "FoundationMacrosTests",
218-
dependencies: [
219-
"FoundationMacros"
220-
],
221-
swiftSettings: availabilityMacros + featureSettings + testOnlySwiftSettings
222-
)
223-
])
224-
#endif

0 commit comments

Comments
 (0)