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: unassignedclangb...@nondot.org
Reporter: dupont.lo...@ireq.ca
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs