Hi there folks,
Sorry if this has been answered before, but here goes…
I’m on Windows and using Clang as my compiler with CMake, and my compiler toolchain contains
set(CMAKE_CXX_COMPILER_TARGET i686-pc-windows-gnu), which passes
--target=i686-pc-windows-gnu argument to Clang, causing it to properly find all the system headers for MinGW.
I asked CMake to generate the
compile_commands.json file for me, and I can see that the database contains the
--target=... flag; however, when I actually try and use Clangd I get errors that it can’t find any of the standard library header files (It specifically complains about
Am I doing something wrong here, or is this some kind of known limitation of Clangd?