adds a script to generate a clangd file for editor usage

This commit is contained in:
2025-05-29 10:50:23 -04:00
parent bdd20608fa
commit df4a508066
4 changed files with 21 additions and 8 deletions

15
util/gen-clangd.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# This must be built with `make env` in the root folder
# otherwises the paths will be incorrect
echo "CompileFlags:
Add:
- \"--sysroot=$(pwd)/sysroot\"
- \"-ffreestanding\"
- \"-Wpedantic\"
- \"-Werror\"
- \"-Wall\"
- \"-Wextra\"
" > .clangd