<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90433>90433</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Driver] clang --ld-path doesn't recognize 'llvm ld.lld'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Andarwinux
</td>
</tr>
</table>
<pre>
If `LLVM_TOOL_LLVM_DRIVER_BUILD` is enabled, it is possible to call lld by means of `llvm ld.lld`, but clang's `--ld-path` does not support this.
Normally direct call ld.lld symbolic link would suffice, but for instrumentation BOLT training, this can cause problems, as BOLT training cannot be done simply by:
```
./llvm-bolt -instrument ./llvm -o ./llvm.instr --instrumentation-file=./llvm.fdata
LLD_IN_TEST=1 ./llvm.instr clang -O3 -flto=thin -fuse-ld=lld --ld-path='llvm.instr ld.lld' ./test.c
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcU91u8ygQfRp8M7Jlg3-SC1-kdSNFyjZSN9vbCAxO2B2DBbjd7NOvTJPm-ypZFjDDnDNnDtx7fTZKtaR6IlWX8DlcrGs3RnL3qc38byKsvLa7AUid7_fvf5yOh8P-FFfd2-795e309Ndu35E6B-1BGS5QSUKfQYflYLLea4EKgoWeIwKiBHGFUXHjwcayiB8joMwQJanz5a6YA_TIzZnQxi8paYoynXi4LDjSKg_GBvDzNFkXIFy0z0jekXzz9X-1buSIV5DaqT7ckCMC-OsoLOoeUJt_4NPOy9k8DLpXd-jBOtDGBzePygQetDXwdNgfITiujV5oPUdQ6LmBns9eweSsQDX6JcT97-lL2sJXKJDWKPB6nPAK4krYBm686_z2xW1G6HaRJRUWA6QPMnCPQGq_11mMQ5r-IJ0OGhVh3XfeIHngXwj7fXfavZ6OL38eCeuKn7Wi-pAeGKQDBktYFy7aQDrMXqUoCesWLR9jYR2hzS_3b-OkTSwclA9Z_6PTRLZMrtmaJ6otmqJkDSvWRXJpV43kxapqmKhlRZuKrYtKrQSTXEpRizLRLc1pmZd0nddlzYqMrgq-WudU8Z6yiuakzNXINWaRkXXnRHs_q3adl4wlyIVCHx1P6c1mlNBnQmnkTJeH4Nov_eezJ2WO2gf_qBZ0wPhkOqc_lCNVdxfsLkg0qSG0CeBUb89G_6fgJtFDnGR22F5CmDxhG0K3hG7POlxmkfV2vA3k7oTJ2b9VHwjdxl48odvYzv8BAAD__1gWMhQ">