Skip to content

Commit 649618d

Browse files
committed
Remove duplicate call to install() for stdlib modules
Also amend the installation code handling macCatalyst to match the one for regular swiftmodules.
1 parent 9504de5 commit 649618d

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -723,22 +723,6 @@ function(_compile_swift_files
723723
list(APPEND module_outputs "${interface_file}" "${private_interface_file}")
724724
endif()
725725

726-
set(optional_arg)
727-
if(SWIFTFILE_SDK IN_LIST SWIFT_DARWIN_PLATFORMS OR
728-
SWIFTFILE_SDK STREQUAL "MACCATALYST")
729-
# Allow installation of stdlib without building all variants on Darwin.
730-
set(optional_arg "OPTIONAL")
731-
endif()
732-
733-
swift_install_in_component(DIRECTORY "${specific_module_dir}"
734-
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
735-
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}")
736-
if(SWIFTFILE_STATIC)
737-
swift_install_in_component(DIRECTORY "${specific_module_dir_static}"
738-
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift_static/${library_subdir}"
739-
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}")
740-
endif()
741-
742726
# macCatalyst zippered module setup
743727
if(maccatalyst_build_flavor STREQUAL "zippered")
744728
compute_library_subdir(maccatalyst_library_subdir
@@ -780,7 +764,8 @@ function(_compile_swift_files
780764
swift_install_in_component(DIRECTORY ${maccatalyst_specific_module_dir}
781765
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${maccatalyst_library_subdir}"
782766
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}"
783-
"${optional_arg}")
767+
PATTERN "Project" EXCLUDE
768+
OPTIONAL)
784769
endif()
785770

786771
# If we have extra regexp flags, check if we match any of the regexps. If so

0 commit comments

Comments
 (0)