Details
Description
If I build an executable with swiftc:
$ swiftc test.swift
Then I find out the Swift standard library was dynamically linked:
$ otool -L test @rpath/libswiftCore.dylib (compatibility version 0.0.0, current version 0.0.0)
However, the binary distributions also have a static version that I didn't use:
/Library/Developer/Toolchains/swift-latest.xctoolchain//usr/lib/swift_static/macosx/libswiftCore.a
I want to pass e.g. -static-stdlib to swiftc to compile a program that is statically linked with the Swift standard library.
Attachments
Issue Links
- relates to
-
SR-648 swift package manager should have the option to produce statically linked binaries
-
- Open
-
-
SR-2280 swiftc -static-stdlib option fails on Ubuntu 14.04 & 15.10
-
- Resolved
-
-
SR-727 (emscripten support) Compile Swift code with statically linked stdlib
-
- Resolved
-
-
SR-9821 Swift Static Standard Library is being treated as private api
-
- Resolved
-