Skip to content

Commit bfbce36

Browse files
authored
Always build the "non-overlay" apinotes when building Platform. (#16851)
1 parent 0451a31 commit bfbce36

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,9 @@ function(_add_swift_library_single target name)
780780
${SWIFTLIB_SINGLE_SDK} STREQUAL "OSX")
781781
# HACK: don't build WatchKit API notes for OS X.
782782
else()
783-
if (NOT IS_DIRECTORY "${SWIFT_SOURCE_DIR}/stdlib/public/SDK/${framework_name}")
784-
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
785-
endif()
783+
# Always build the "non-overlay" apinotes to keep them in sync
784+
# rdar://40496966
785+
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
786786
endif()
787787
endforeach()
788788
endif()
@@ -793,9 +793,6 @@ function(_add_swift_library_single target name)
793793
else()
794794
string(REPLACE swift "" module_name "${name}")
795795
endif()
796-
if("${module_name}" IN_LIST SWIFT_API_NOTES_INPUTS)
797-
set(SWIFTLIB_SINGLE_API_NOTES "${module_name}")
798-
endif()
799796

800797
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS")
801798
swift_windows_include_for_arch(${SWIFTLIB_SINGLE_ARCHITECTURE} SWIFTLIB_INCLUDE)

0 commit comments

Comments
 (0)