Skip to content

build: adjust the autolink library for Windows #1312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Member

When building statically, ensure that we prefix the Swift libraries with the correct prefix to permit static linking of the libraries.

When building statically, ensure that we prefix the Swift libraries with
the correct prefix to permit static linking of the libraries.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd requested a review from jmschonfeld May 22, 2025 19:37
Copy link
Contributor

@jmschonfeld jmschonfeld left a comment

Choose a reason for hiding this comment

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

Seems fine to me, but before merging could we test the CMake build via a cross-repo test with the swift repo (sadly we don't have the ability to test CMake in this repo) just to make sure we don't miss anything there?

@compnerd
Copy link
Member Author

Running the build, but unlikely to catch anything as we are not doing enough of the static library builds.

@jmschonfeld
Copy link
Contributor

LINK : fatal error LNK1104: cannot open file 'libswiftSynchronization.lib'

Looks like maybe this did break the Windows CMake build?

@compnerd
Copy link
Member Author

Yeah, because we weren't building Synchronization. I've added that and am going to re-try.

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.

2 participants