<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56300>56300</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lld-link Visual Studio 2022 and Visual Studio 2019
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          FrancescElies
      </td>
    </tr>
</table>

<pre>
    Related to #56285

## Problem

We are compiling and linking our program with ASAN under windows.

We are seeing the following lld-link error on machines with _visual studio 20022_, for the following windows-sdks:
 - 10.0.17763.0
 - 10.0.19041.0
 - 10.0.20348.0
 - 10.0.22000.0

```
lld-link: error: /INFERASANLIBS is not allowed in .drectve
```

On a machines with _Visual Studio 2019_ and the same _windows-sdks_ _lld-link_ works fine and throws no errors.

I couldn't get a min reprex yet, but I will provide one as soon as I can narrow it down.

### llvm version 
```
❯ clang -v
clang version 14.0.6
Target: x86_64-pc-windows-msvc
Thread model: posix
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtU1Fv2yAQ_jX2yykWwY4TP_ghXRup0tRN7bQ9WthcElYMEeCk_fc77GTr0kgIcwd89_F959bK9_oZtQgoIVhIeL4o-WqRsPuErc8zz2nAd2dbjf3HnV8IwiF0tj8orcwOhJFAi9e4toODg7M7J3o4qbCH9cv6CQYj0VFspD357AaYR4y3wx5ha7W2pxhpLWcRF9A568Aa6EW3Vwb9BN0clR-EBh8GqSxwxjhvEv6FINwV1Ln0zMtXn-Tn2jCDOctYNl8uyzxjV8mKFfPrJGd5sfqUpMLskjzPJTuPMbw8hCpPb4mLhG8enzYPz1Ggr493L6A8GBtARM7kizKQSYddOOJN0Gn-ZkBcy_JzkuXlIsu8akaPoiRe9AjNRzkaaC78GjhZ9-phS2DnG46OEa2J9v_WPVILDFqahC8D7DBEIkTa4cHhG7xjiFa0Q4BH4qV1bIujkkg-ErgHb8lQ-hKMMGAEFTiBCkDETPa5E2Mzan3s4YjOK7p6W5QHnlT3yXoDnRbk--w45afocnVekG3ltPNDOOIeDXlblU1ZzA7d7CJP74_d-dTeoZDQW4k6nj1Yr95uMkhlncsqr0QaVNBY_23ia1c4HyX-bFY6OF3vQziMnco3NHbk69Bm9MtREFU4f2ak6W9qEQqV9wN6WizKnLF0XwuWS7ZkWyy27ZwthWxZW7ZysZLFstxWRapFi9rXyeIu4dwgiR8haJ0s7lNVR4YsYlXFileZbDvJu5UQosKVmG-TgmEvlM4ij8y6XerqkVI77DxtauWD_7cpvFc7gziWI3wxhL119cYJ06HvHrRCn44E6vEBfwCcRmsy">