Skip to content

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

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

Conversation

Steelskin
Copy link

@Steelskin Steelskin commented Mar 12, 2025

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 compnerd@compnerd.org
(cherrry picked from commit 606e9fa)

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 <compnerd@compnerd.org>
(cherrry picked from commit
[606e9fa](swiftlang@606e9fa)
@Steelskin Steelskin requested a review from a team as a code owner March 12, 2025 17:18
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd compnerd merged commit f51150f into swiftlang:stable/20240723 Mar 13, 2025
3 checks passed
shahmishal pushed a commit that referenced this pull request Mar 25, 2025
Cherry-picked from #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 <compnerd@compnerd.org>
(cherrry picked from commit
[606e9fa](606e9fa)
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