Skip to content

Commit 873eee0

Browse files
authored
Merge pull request #2280 from compnerd/example-macros
build: enable Macros examples on other platforms
2 parents d647052 + 66f7215 commit 873eee0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Examples/Package.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ let package = Package(
5151
]
5252
)
5353

54-
// The following targets are added only if the OS is macOS. This is because Swift macros are currently
55-
// not available on other platforms. As a result, we're guarding these targets with `#if os(macOS)`
56-
// to ensure that they are only included in the package when building on a macOS system.
57-
#if os(macOS)
5854
package.targets.append(
5955
contentsOf: [
6056
.target(
@@ -73,7 +69,6 @@ package.targets.append(
7369
),
7470
]
7571
)
76-
#endif
7772

7873
// This is a fake target that depends on all targets in the package.
7974
// We need to define it manually because the `Examples-Package` target doesn't exist for `swift build`.

0 commit comments

Comments
 (0)