- Just look for "lld-link", not "lld-link.exe". llvm/cmake/platforms/WinMsvc.cmake for example sets CMAKE_LINKER to lld-link without .exe
- Stop passing -gwarf to the compiler in sanitizer options when lld is enabled -- there's no reason to use different debug information keyed off the linker. (If this was for MinGW, we should check for that instead.)
Not your diff, but is this just setting LINKER_IS_LLD_LINK to true when LLVM_ENABLE_LLD is true? That seems wrong?