<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 - clangd indexer fails when command contains -march"
   href="https://bugs.llvm.org/show_bug.cgi?id=41163">41163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clangd indexer fails when command contains -march
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang-tools-extra
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>clangd
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dupont.louis@ireq.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21636" name="attach_21636" title="Sample project with both the ok (build) and failing (build2) build commands">attachment 21636</a> <a href="attachment.cgi?id=21636&action=edit" title="Sample project with both the ok (build) and failing (build2) build commands">[details]</a></span>
Sample project with both the ok (build) and failing (build2) build commands

clangd indexer fails when command contains "-march". For example when provided
with the following compile_commands.json:

[
{
  "directory": "/home/project/hello/build",
  "command": "/usr/bin/cc  -I/home/project/hello/inc -march=armv7e-m -o
CMakeFiles/hello.dir/src/hello.c.o   -c /home/project/hello/src/hello.c",
  "file": "/home/project/hello/src/hello.c"
}
]

clangd will create an empty .clangd/index folder. The folder content only
appears when "-march=armv7e-m" is removed from the command string. Observed
with:

clangd version 9.0.0-svn354959-1~exp1+0~20190227105110.828~1.gbpd90386</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>