dev: export cmake compile commands

For LSP
This commit is contained in:
2 * r + 2 * t 2025-09-08 15:23:45 +10:00
parent 68ec55e92e
commit 261b4dd97b
2 changed files with 2 additions and 1 deletions

2
.envrc
View file

@ -12,7 +12,7 @@ watch_file **/CMakeLists.txt
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DDISTRIBUTOR=direnv cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DDISTRIBUTOR=direnv
cmake --build build cmake --build build
export CAELESTIA_LIB_DIR="$PWD/build/lib" export CAELESTIA_LIB_DIR="$PWD/build/lib"
export QML2_IMPORT_PATH="$PWD/build/qml:${QML2_IMPORT_PATH:-}" export QML2_IMPORT_PATH="$PWD/build/qml:${QML2_IMPORT_PATH:-}"

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/result /result
/.qmlls.ini /.qmlls.ini
build/ build/
.cache/