Skip to content

Commit 6ab1b3d

Browse files
committed
Always build the "non-overlay" apinotes when building Platform.
1 parent 0cd182d commit 6ab1b3d

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
@@ -719,9 +719,9 @@ function(_add_swift_library_single target name)
719719
${SWIFTLIB_SINGLE_SDK} STREQUAL "OSX")
720720
# HACK: don't build WatchKit API notes for OS X.
721721
else()
722-
if (NOT IS_DIRECTORY "${SWIFT_SOURCE_DIR}/stdlib/public/SDK/${framework_name}")
723-
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
724-
endif()
722+
# Always build the "non-overlay" apinotes to keep them in sync
723+
# rdar://40496966
724+
list(APPEND SWIFTLIB_SINGLE_API_NOTES "${framework_name}")
725725
endif()
726726
endforeach()
727727
endif()
@@ -732,9 +732,6 @@ function(_add_swift_library_single target name)
732732
else()
733733
string(REPLACE swift "" module_name "${name}")
734734
endif()
735-
if("${module_name}" IN_LIST SWIFT_API_NOTES_INPUTS)
736-
set(SWIFTLIB_SINGLE_API_NOTES "${module_name}")
737-
endif()
738735

739736
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS")
740737
swift_windows_include_for_arch(${SWIFTLIB_SINGLE_ARCHITECTURE} SWIFTLIB_INCLUDE)

0 commit comments

Comments
 (0)