# SE-0342: Statically link Swift runtime libraries by default on supported platforms

**URL:** <https://forums.swift.org/t/se-0342-statically-link-swift-runtime-libraries-by-default-on-supported-platforms/55363>\
**Category:** Proposal Reviews\
**Created:** [February 16, 2022, 6:08am UTC](https://forums.swift.org/t/se-0342-statically-link-swift-runtime-libraries-by-default-on-supported-platforms/55363 "2022-02-16T06:08:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Keith](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/keith/32/291_2.png) [@Keith](https://forums.swift.org/u/Keith)\
**Post date:** [February 17, 2022, 9:29pm UTC](https://forums.swift.org/t/se-0342-statically-link-swift-runtime-libraries-by-default-on-supported-platforms/55363/6 "2022-02-17T21:29:29Z")

</div>

> [@tkremenek](#):
>
> - What is your evaluation of the proposal?

Big +1 on this for the reasons stated around static linking generally being the preferred approach on Linux.

> [@tkremenek](#):
>
> - Is the problem being addressed significant enough to warrant a change to Swift?

Definitely, this is a small change that should improve the onboarding for non Apple platform developers wanting to use Swift since it's more similar to other programming languages.

> [@tkremenek](#):
>
> - How much effort did you put into your review? A glance, a quick reading, or an in-depth study?

I read all the related threads.

Similar to this comment [[Pre-Pitch] Statically linking the Swift runtime libraries by default on Linux - #26 by NeoNacho](https://forums.swift.org/t/pre-pitch-statically-linking-the-swift-runtime-libraries-by-default-on-linux/52837/26) I don't love the `-runtimes` portion of the suggested flag. I think `stdlib` fits a bit better in here, especially since I think runtime is an overloaded word with things like the clang runtime libraries. But I understand that a lot of these words are overloaded.

I think this is likely out of scope but I think it would be great if part of the solution here is putting in some effort to solve the potential sharp edges with this feature like [SwiftSyntax does not work with --static-swift-stdlib](https://forums.swift.org/t/swiftsyntax-does-not-work-with-static-swift-stdlib/54680) so users didn't hit issues like this in libraries we control.

---

_[View the full topic](https://forums.swift.org/t/se-0342-statically-link-swift-runtime-libraries-by-default-on-supported-platforms/55363)._
