Skip to content

Support getting Windows SDK from the environment #625

Closed
@ChrisDenton

Description

@ChrisDenton

One thing that was brought up recently with the Windows CI's update was a desire to stay with a particular version of the Windows SDK even when a newer version is avaliable. Currently cc always gets the latest with no easy way (as far as I'm aware) to override it. Usually this works out fine but not always.

It would be great if it could default to using the environment before falling back to finding the latest. Possibly relevant environment variables (set by vcvarsall.bat or developer powershell):

  • WindowsSDK_ExecutablePath_x64
  • WindowsSDK_ExecutablePath_x86
  • WindowsSdkBinPath
  • WindowsSdkDir
  • WindowsSDKLibVersion
  • WindowsSdkVerBinPath
  • WindowsSDKVersion

I don't have the bandwidth to test a fix for this atm, so if anyone else wants to look into it I'd appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions