Skip to content

Commit a7bcdb4

Browse files
committed
Add comment explaining localization CMakeLists setup
1 parent 1609088 commit a7bcdb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,13 @@ if(SWIFT_INCLUDE_TOOLS)
11121112
# https://bugs.swift.org/browse/SR-5975
11131113
add_subdirectory(tools)
11141114

1115+
# Localization targets are configured in a way that assume the swift
1116+
# frontend is being built, so trying to include them for other builds
1117+
# (like stdlib) fail!
1118+
#
1119+
# Diagnostics information is only useful for the frontend compiler
1120+
# anyway, so let's only include it if the compiler is being built,
1121+
# which at the moment seems like if SWIFT_INCLUDE_TOOLS is defined.
11151122
add_subdirectory(localization)
11161123
endif()
11171124

0 commit comments

Comments
 (0)