Skip to content

CommandLineSupport: add a directive for autolinking on Windows #81589

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

compnerd
Copy link
Member

We use functions from Shell32.Lib. Ensure that we indicate the autolinking to the linker. This aides when building with a static runtime to avoid having to specify the additional library dependency for clients that are attempting to link against the runtime. This is particularly important for the CMake compiler check where we would need to list Shell32 as a required link library.

We use functions from Shell32.Lib. Ensure that we indicate the
autolinking to the linker. This aides when building with a static
runtime to avoid having to specify the additional library dependency for
clients that are attempting to link against the runtime. This is
particularly important for the CMake compiler check where we would need
to list Shell32 as a required link library.
@compnerd compnerd requested a review from a team as a code owner May 18, 2025 01:31
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd merged commit c4b0e97 into swiftlang:main May 19, 2025
3 checks passed
@compnerd compnerd deleted the autolink branch May 19, 2025 00:06
hamishknight added a commit to hamishknight/swift that referenced this pull request May 22, 2025
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.

1 participant