sourcegraph / lsif-cpp

Language Server Index Format (LSIF) generator for C++
https://lsif.dev/
9 stars 3 forks source link

Fixed error occur when compiling with llvm-10 #14

Open hxdnshx opened 3 years ago

hxdnshx commented 3 years ago

Command llvm-config --cxxflags outputs following flags in llvm-10:

-I/usr/lib/llvm-10/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

Note that flag -std=c++14 sets the cxx standard to 14. But this setting will be overwritten by the flag set in the Makefile.

So I modified the order of flags to pass the compilation.