mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This patch splits add_swift_library into two functions one which handles the simple case of adding a library that is part of the compiler being built and the second handling the more complicated case of "target" libraries, which may need to build for one or more targets. The new add_swift_library is built using llvm_add_library, which re-uses LLVM's CMake modules. In adapting to use LLVM's modules some of add_swift_library's named parameters have been removed and LINK_LIBRARIES has changed to LINK_LIBS, and LLVM_LINK_COMPONENTS changed to LINK_COMPONENTS. This patch also cleans up libswiftBasic's handling of UUID library and headers, and how it interfaces with gyb sources. add_swift_library also no longer has the FILE_DEPENDS parameter, which doesn't matter because llvm_add_library's DEPENDS parameter has the same behavior.