Skip to content

Commit cf390a9

Browse files
committed
[build] Don’t build swift-refactor if swift-syntax is not being built
This fixes a build issue for Android.
1 parent 556c503 commit cf390a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/swift-refactor/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if (NOT SWIFT_BUILD_SWIFT_SYNTAX)
2+
# swiftRefactoring requires SwiftIDEUtilsBriding, which isn't built if SWIFT_BUILD_SWIFT_SYNTAX is `NO`.
3+
return()
4+
endif()
5+
16
add_swift_host_tool(swift-refactor
27
swift-refactor.cpp
38
SWIFT_COMPONENT tools

0 commit comments

Comments
 (0)