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

    <tr>
        <th>Summary</th>
        <td>
            How to add a self-defined dynamic library to ORC JIT
        </td>
    </tr>

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

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

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

<pre>
    I  want to add a self-defined dynamic library to ORC JIT when compile code through JIT. How can I do this?
I find there is an API called `addPermanentLibrary` in `llvm/include/llvm/Support/DynamicLibrary.h` , but I don't know if it can be used in ORC JIT or how to use it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkc9unDAYxJ_GXD4FGcOCOfiQZoWyVaVGbV7A2N-u3Rob-U_Rvn0FmyrnXhnG85tvZEr25hEFOX0hp3MlSzYhincTY0RErOag7-ICsEmfIQeQWoOEhO76pPFqPWrQdy8Xq8DZOcp43__6_uMFvl7eYTPoQYVltQ5BBY2QTQzlZna1htewgZIeLqADZGMTaSdCz4Q-X-BqvYZsMCLYBNLD89sFlHQONZCeSq3fMC7So8_fHsGkp2D9Ljr3ZyFssl65opGw6ePDz7KuIWbCpvOD-cNZm91L2AvMJR80nrAhw28fNrBXsPnAnBFKQr2H_CsYIpiw7ZVLQrC5rrRo9diOskLRDE3bDs3YdJUR7agUo3Rk-jpy2TcM-dBzrpUcGTvxsbKCUdbRrhmavuVtVw8cm17P-sSk5FxK0lFcpHX13qYO8VbZlAoKPtKRV07O6NKxI2MeNzhEwtg-axS752kut0Q66mzK6fOVbLND8fqo8V_7ViU6YXJeE2mfCZsIm242mzLXKiyfZz-y1xh-odpvf4AlwqYD_G8AAAD__6cn0Gs">