Uploaded image for project: 'Swift'
  1. Swift
  2. SR-33

Support packaging Swift packages as dynamic libraries

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Labels:
      None

      Description

      From what I've read in the documentation about the package manager, it will currently statically link all code from dependencies into one final binary.

      If (and hopefully when) Swift gains traction in the Linux community, Linux distributions will at some point in time want to integrate Swift packages into their native packaging mechanism. For this it would be advantageous to:

      1. have the ability to compile a Swift package into a dynamic library (maybe plus some more metadata) that can be packaged independently
      2. allow swift applications to be built to dynamically load their dependencies at runtime

      The concept of dynamic frameworks on iOS/OSX could be used on Linux as well, having some sort of Swift packages/frameworks folder that packages will be sought for in when a binary is trying to load a dependency.

        Attachments

          Activity

            People

            • Assignee:
              mxcl Max Howell
              Reporter:
              ahti Lukas Stabe
            • Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: