Skip to content

Commit 8d9471e

Browse files
committed
Exclude SwiftCompilerPlugin from all target
The SwiftCompilerPlugin library is only needed when writing Swift macros, but not by the rest of the Swift compiler. The Swift build-script only knows how to build the `all` target, resulting in this target also being built as part of the compiler when it should not be.
1 parent bdc3df2 commit 8d9471e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftCompilerPlugin/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

99
add_swift_syntax_library(SwiftCompilerPlugin
10+
EXCLUDE_FROM_ALL
1011
CompilerPlugin.swift
1112
)
1213

0 commit comments

Comments
 (0)