llvm / llvm/llvm-project

[WINDOWS] Clang links to deprecated library `oldnames`

Open
#174,035 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.