Figure out what is with clangd not liking #include <algorithm>
Notgnoshi opened this issue · comments
In included file: definition of builtin function '__rdtsc'
A terrible workaround is to pretend __rdtsc
doesn't exist (for the purposes of the language server) by adding
CompileFlags:
Add: [-D__rdtsc=__EWW_GROSS_NASTY_HACK__]
to the project .clangd
configuration file (requires clangd-11 or higher).
I have tried different sysroot, query-drivers, and toolchain options with no success. I suspect it's ultimately a problem with our toolchain being configured incorrectly, because I've seen others be able to use an embedded toolchain with clangd just fine.