Skip to content

Commit 037a1df

Browse files
authored
Merge pull request #24645 from smeenai/reflection
[cmake] Ensure swiftReflection is built for tools
2 parents 9913468 + 0b2c004 commit 037a1df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,12 @@ endif()
10511051
# https://bugs.swift.org/browse/SR-5975
10521052
if(SWIFT_BUILD_STDLIB)
10531053
add_subdirectory(stdlib)
1054+
else()
1055+
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
1056+
# ensure we build that when building tools.
1057+
if(SWIFT_INCLUDE_TOOLS)
1058+
add_subdirectory(stdlib/public/Reflection)
1059+
endif()
10541060
endif()
10551061

10561062
if(SWIFT_INCLUDE_APINOTES)

0 commit comments

Comments
 (0)