Skip to content

Commit

Permalink
fix for wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Aug 27, 2024
1 parent 3691d08 commit 6cf4d5a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
16 changes: 15 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,21 @@ let package = Package(
name: "CasePathsMacrosTests",
dependencies: [
"CasePathsMacros",
.product(name: "MacroTesting", package: "swift-macro-testing"),
.product.product(
name: "MacroTesting",
package: "swift-macro-testing",
condition: .when(
platforms: [
.iOS,
.linux,
.macCatalyst,
.macOS,
.tvOS,
.watchOS,
.windows,
]
)
),
]
),
]
Expand Down
16 changes: 15 additions & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,21 @@ let package = Package(
name: "CasePathsMacrosTests",
dependencies: [
"CasePathsMacros",
.product(name: "MacroTesting", package: "swift-macro-testing"),
.product(
name: "MacroTesting",
package: "swift-macro-testing",
condition: .when(
platforms: [
.iOS,
.linux,
.macCatalyst,
.macOS,
.tvOS,
.watchOS,
.windows,
]
)
),
]
),
],
Expand Down
2 changes: 2 additions & 0 deletions Tests/CasePathsMacrosTests/CasePathableMacroTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(MacroTesting)
import CasePathsMacros
import MacroTesting
import SwiftSyntaxMacros
Expand Down Expand Up @@ -1294,3 +1295,4 @@ final class CasePathableMacroTests: XCTestCase {
}
}
}
#endif

0 comments on commit 6cf4d5a

Please sign in to comment.