Linker commands added via #pragma comment(linker, ...) are passed to the linker via a .drectve section.
Current lld-link however rejects /manifestdependency arguments passed this way.
They are very common for enabling Visual Styles in Win32 GUI applications.
I have found https://bugs.llvm.org/show_bug.cgi?id=38797 opened over 2 years ago along with a simple one-liner patch.
I've updated this patch for latest lld as the bug still persists.
I have no LLVM commit access, so someone else has to commit this.
My author information: Colin Finck <colin@reactos.org>
Other involved authors from the bug report:
- Roland Reichwein <mail@reichwein.it>
- Jaromir Kuba <kuba@gdpr-pardubice.cz>