Created attachment 21636
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
hello.tar.xz
(12384 bytes, application/x-xz)