[WINDOWS] Clang links to deprecated library `oldnames`
Open
clang:driver
platform:windows
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Microsoft has removed the `oldnames.lib` library from the Windows 11 SDK. However, Clang still links to it by default, at least in CMake.
Add a check that checks the SDK version, and stops linking to `oldnames` for a certain version.
As a workaround, I tried supplying `-nodefaultlibs -lkernel32 -luser32 ...` but that didn't stop clang from linking to oldnames.
Contributor guide
Assessment
This issue has not been assessed yet.