Skip to content

🍒 [WindowsDriver] Always consider WinSdkVersion (llvm#130377) #10301

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

Conversation

Steelskin
Copy link

@Steelskin Steelskin commented Mar 19, 2025

  • Explanation:
    Currently, the -Xmicrosoft-windows-sdk-version is only used if -Xmicrosoft-windows-sdk-root is also provided. This is a surprising behavior since the argument should still be taking effect if LLVM uses the Windows SDK root from the registry.
  • Scope:
    The changes are tailored to only take effect when -Xmicrosoft-windows-sdk-version is specified but -Xmicrosoft-windows-sdk-root is not. It is very likely that the caller intent was to use a specific Windows SDK version in this case, though it was not happening.
  • Issues:
    N/A
  • Original PRs:
    Original LLVM PR [WindowsDriver] Always consider WinSdkVersion llvm/llvm-project#130377
    Cherry-picked from 🍒 [WindowsDriver] Always consider WinSdkVersion (llvm#130377) #10240
  • Risk:
    Very low. Should be a no-op for most users.
  • Testing:
    Tested locally in a simple Hello World program including Windows.h and compiled with -Xmicrosoft-windows-sdk-version 10.0.18362.0 on a system where the SDK 10.0.22621.0 is also installed and verified that the correct header was included.
  • Reviewers:
    @compnerd

Cherry-picked from llvm#10240

Currently, the `-Xmicrosoft-windows-sdk-version` is only used if
`-Xmicrosoft-windows-sdk-root` is also provided. This is a surprising
behavior since the argument should still be taking effect if LLVM uses
the Windows SDK root from the registry.

Tested locally in a simple Hello World program including `Windows.h` and
compiled with `-Xmicrosoft-windows-sdk-version 10.0.18362.0` on a system
where the SDK 10.0.22621.0 is also installed and verified that the
correct header was included.

Co-authored-by: Saleem Abdulrasool <[email protected]>
(cherrry picked from commit
[606e9fa](swiftlang@606e9fa)
@Steelskin Steelskin requested a review from a team as a code owner March 19, 2025 22:23
@compnerd
Copy link
Member

@swift-ci please test

@shahmishal shahmishal merged commit 83bb915 into swiftlang:swift/release/6.1 Mar 25, 2025
3 checks passed
@Steelskin Steelskin deleted the fabrice/cp-win-sdk-version branch May 30, 2025 16:13
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.

5 participants