Skip to content

Conversation

@bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Nov 25, 2025

Update the linker settings on non-Apple platforms when use static Swift. stdlib is set.

Fixes: swiftlang/swift-package-manager#9320
Issue: rdar://163948614
Depends on #890

daveinglis and others added 2 commits November 21, 2025 12:31
…libs

- remove the platform specifics from computeLibraryArgs (we cannot assume
  that all libraries have a lib prefix and what there suffix is.) So we
  now use the FileType prefix and remove any suffix when using
  searchPathFlagsForLD, moving this into the LinkerSpec.LibrarySpecifier
  extension, this allows for proper searching of libraries, and linking
  of dynamic libraries (especially on Windows).
Update the linker settings on non-Apple platforms when use static Swift
stdlib is set.
@bkhouri
Copy link
Contributor Author

bkhouri commented Nov 25, 2025

@swift-ci test

@bkhouri bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch from e226a68 to 8d4b214 Compare November 25, 2025 21:24
@bkhouri
Copy link
Contributor Author

bkhouri commented Nov 25, 2025

@swift-ci test

args += [sdkPathArgument]

if !forTAPI {
if shouldStaticLinkStdlib {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we are making changes here if the feature is not supported on macOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Parity] Add parity support for --[no-]static-swift-stdlib support (SwiftBuild)

3 participants