<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [feature suggestion] Please split out dump() and other debug functionality into a separate library"
   href="https://bugs.llvm.org/show_bug.cgi?id=40875">40875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[feature suggestion] Please split out dump() and other debug functionality into a separate library
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Runtime Libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yuri@tsoft.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The Intel's ISPC compiler [1] and flang compiler expect dump() function to be
present while it is commonly excluded in the packages. LLVM_ENABLE_DUMP is a
relevant cmake variable.

It is difficult to build LLVM with custom options for individual other
projects.

Suggested solution:
Please add a separate library that would contain functions disabled by
LLVM_ENABLE_DUMP=OFF, for example libLLVMDebug.so

This library can be installed as a sub-package, or as a separate package, and
would eliminate the problem.

---References---
[1] ISPS bug report. <a href="https://github.com/ispc/ispc/issues/1427">https://github.com/ispc/ispc/issues/1427</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>