-
Create
.clangd
for the compile flags -
Copy stdc++.h to /usr/local/include/bits
mkdir /usr/local/include/bits
echo '#define _GLIBCXX_HOSTED 1' > /usr/local/include/bits/stdc++.h
curl -sS https://raw.githubusercontent.com/gcc-mirror/gcc/master/libstdc%2B%2B-v3/include/precompiled/stdc%2B%2B.h >> /usr/local/include/bits/stdc++.h
- Manually remove these headers:
<cstdalign>
,<cuchar>
,<memory_resources>
in order for clangd to work, and thattree_policy
may still not be usable
Eg.
make clean && make P=projecteuler/3.c
make clean P=projecteuler/3.c