Skip to content

Commit 8fcfc1f

Browse files
authored
Always build the "non-overlay" apinotes when building Platform. (#16852)
1 parent 6d0ed8e commit 8fcfc1f

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
@@ -770,9 +770,9 @@ function(_add_swift_library_single target name)
770770
${SWIFTLIB_SINGLE_SDK} STREQUAL "OSX")
771771
# HACK: don't build WatchKit API notes for OS X.
772772
else()
773-
if (NOT IS_DIRECTORY "${SWIFT_SOURCE_DIR}/stdlib/public/SDK/${framework_name}")
774-
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
775-
endif()
773+
# Always build the "non-overlay" apinotes to keep them in sync
774+
# rdar://40496966
775+
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
776776
endif()
777777
endforeach()
778778
endif()
@@ -783,9 +783,6 @@ function(_add_swift_library_single target name)
783783
else()
784784
string(REPLACE swift "" module_name "${name}")
785785
endif()
786-
if("${module_name}" IN_LIST SWIFT_API_NOTES_INPUTS)
787-
set(SWIFTLIB_SINGLE_API_NOTES "${module_name}")
788-
endif()
789786

790787
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS")
791788
swift_windows_include_for_arch(${SWIFTLIB_SINGLE_ARCHITECTURE} SWIFTLIB_INCLUDE)

0 commit comments

Comments
 (0)