[llvm-bugs] [Bug 41163] New: clangd indexer fails when command contains -march
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 20 17:29:42 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41163
Bug ID: 41163
Summary: clangd indexer fails when command contains -march
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: clangd
Assignee: unassignedclangbugs at nondot.org
Reporter: dupont.louis at ireq.ca
CC: llvm-bugs at lists.llvm.org
Created attachment 21636
--> https://bugs.llvm.org/attachment.cgi?id=21636&action=edit
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190321/19f3691e/attachment.html>
More information about the llvm-bugs
mailing list