<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/79604>79604</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Add support for distributed ThinLTO options to `wasm-ld` driver
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
trybka
</td>
</tr>
</table>
<pre>
The Wasm Driver for LLD seems to be missing options related to distributed ThinLTO.
https://gist.github.com/MaskRay/24f4e2eed208b9d8b0a3752575a665d4#distributed-thinlto may be a good reference.
We are looking to add ThinLTO support to Bazel / Emscripten. `wasm-ld` appears to be missing flags related specifically to _distributed_ ThinLTO. These flags appear to be used for e.g. mapping index files to objects.
See https://reviews.llvm.org/D46034 for an example of some options added to the ELF driver.
Similarly, https://reviews.llvm.org/D64461 and https://reviews.llvm.org/D64542 have implementations for COFF.
The set of flags that we expect are:
```
--thinlto-index-only=
--thinlto-emit-imports-files
--thinlto-prefix-replace=
```
Also missing but not sure if related:
```
--obj-path=
```
+cc: @sbc100 @walkingeyerobot @googlewalt
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE2PozgQ_TXmUgI5xqGTA4fuyXDq1Ug7Lc1xVMYFeNpgZJtOZ3_9yiSTTke70kgRAX_Ue_XqVWEIpp-IarZ9YttDhkscnK-jP6lXzJTTp_plIPiBYYSDN2_koXMenp8PEIjGANGBIhhNCGbqwc3RuCmAJ4uRdNrVJkRv1JI-XwYzPb98Kxg_MP54fg4xzoGVj0w0TDS9CbHoTRwWVbRuZKL5C8Pr33hiohGykySItOA7tdc7xbF82IrtwxaraqslE-UNWB4HM9noYMRToojQO6fBU0eeppY-kfhBgJ7AOvea0ogOUF_pQljm2fmYlp_wH7LARANfx9B6M0eaCmAVP2IYc6tZxQHnmdDfS9NZ7D-ECTO1pjMtWntKB3_eMP951QleBgp0uXoOe4m6BNJrJajoCxhxnhOGmTS9Q2csrehO_aI2hgJuU_1OBJ819_Rm6BgKa9_GwvmeieYgK17KFQAnoHccZ0vgOghupGuVUetzjeNA8PW5Ab065JOy381oLHp7YuLLH-BWUlYbwEn_0dmtFDDgG4FJ_EaaIp6ZJeJfvjXNJyrJyIFiSuOsaBwwwpGA3mdqY3JAwru5wSp--a2f-W9P5avQuZvsiZWH-00aTczNmCwT8rUY9ydmT515zz3NFlu6hriDe7TBXe2jlgiTixAWT2C630b6IHxP1alf-Yxx-L_ol6d4altWPgKTPKh2w3l6O6JNfUAn8k65mJZ653pLR7Qx03Wp9-UeM6o3D7wSu03Jq2yoO6HVvhMKldoJxXHHVYtSoez21G6lyEwtuJB8I6rNlm_kpthjx3Uly07SruzKlklOIxp7LXNmQliofthXXGYWFdmwTiohJjrCusmESIPL1-lOrpY-MMmtCfHDLFk00VL9qPW1lZNB_mMyXa0d3V1Tn62dLd7W9xPrZlglxMtfPnuX2o-JZuUZmGjWPP4NAAD__3qwwLY">