Skip to content

Commit 5ac651d

Browse files
committed
Merge pull request #2263 from bitjammer/swift-reflection-dump-host-builds
Only configure swift-reflection-dump if the host SDK is requested
2 parents c9fa650 + e0d9b16 commit 5ac651d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,13 @@ if(SWIFT_BUILD_TOOLS)
750750
add_subdirectory(include)
751751
add_subdirectory(lib)
752752
add_subdirectory(tools)
753+
endif()
754+
755+
is_sdk_requested("${SWIFT_HOST_VARIANT_SDK}" SWIFT_HOST_SDK_REQUESTED)
756+
if(SWIFT_BUILD_TOOLS AND SWIFT_BUILD_STDLIB AND SWIFT_HOST_SDK_REQUESTED)
753757
add_subdirectory(tools/swift-reflection-dump)
754758
endif()
759+
755760
add_subdirectory(utils)
756761
add_subdirectory(stdlib)
757762

0 commit comments

Comments
 (0)