You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has there ever been any discussion of applying it to dynamic libraries also? The workaround in my linked issue gets it to build, though I haven't tested the resulting library to see if it has any runtime issues.
Linking dynamic libraries with --static-swift-stdlib works just like for executables
Actual behavior
I get this linker error from the build steps below, because that repo has a dynamic library product but -static-stdlib isn't passed to the Swift compiler:
Description
@ephemer reported that this wasn't working with my Android SDK bundle a couple months ago, finagolfin/swift-android-sdk#194, and I see this flag has only ever applied to executables since Ankit first implemented it 7.5 years ago.
Has there ever been any discussion of applying it to dynamic libraries also? The workaround in my linked issue gets it to build, though I haven't tested the resulting library to see if it has any runtime issues.
Pinging @spevans, @jakepetroules, @MaxDesiatov, and @kabiroberai, as you all touched some of the surrounding code in subsequent commits.
Expected behavior
Linking dynamic libraries with
--static-swift-stdlib
works just like for executablesActual behavior
I get this linker error from the build steps below, because that repo has a dynamic library product but
-static-stdlib
isn't passed to the Swift compiler:Steps to reproduce
Swift Package Manager version/commit hash
Swift 6.0, 6.1, 6.2
Swift & OS version (output of
swift --version && uname -a
)All Swift versions
The text was updated successfully, but these errors were encountered: