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

    <tr>
        <th>Summary</th>
        <td>
            Clang does not resolve path to linker executable using PATH env variable
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    For example, if you create a symbolic link from /usr/bin/lld-18 to /usr/local/bin/ld, GCC successfully hooks it up. However, Clang does not, and running `clang -v` reveals that it unconditionally calls `/usr/bin/ld`.

I'm not sure whether such behavior is intended, but at least it is very confusing and frustrating to discover.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUs2S2ywQfBp0mbIKYdmyDjrs5y19m1sOeQF-xhZZBC5m0MZvn0Jbqa3kAsXQTHcPrYn8PSJO4vSfOL02uvCS8qQz49qY5J7TnDLgL70-Agp1BX-DZypgM2pG0EDP1aTgLQQf3-GW0wpCzYWyULPxUag5BHfoLsDp6yIkq8MXwNXG_1-vQMVaJLqVEJ6wpPRO4BnKo4W39IEb5gq8Bh3v4BISxMS1oqODXGL08Q7iLO0OOGziLCHjhjoQ8KJ57xVtis6zT1FXEqtDoProX9FOnGUr5KuQL5_rN6GGtTIClYzwsSAvmKvkBQwuevMpgyfwkTE63D2ZwqAZAmra2T3BhvkJNsVboSq3Sr_lQpw11zMncJ5s2jC3jZuObjyOusGpG-S5v5xPfd8sk7nZ8yiPvcLLxYy9QePMUQ79Zeik7Kxp_KSk6mWnRimlUn07WmdGZezJSdsNxohe4qp9aEPY1jble-OJCk7DOAxdE7TBQHsklNqnKZSq6chTxR9MuZPoZfDE9NWBPQec_v4dyEgpbAgPzUs1V1OCNVBoC2sTED7n8P3lxxtg3GDT2dd6U3KYFuYHieOLULNQ893zUkxr07qnavuzHR45_UTLQs27CxJq3o38DgAA__9Wo_L5">