Turn on EXPORT_COMPILE_COMMANDS

To make `clangd` work properly, one may need to make symbolic links

```
cd daemon
ln -sf $PWD/build/tools/debug/arm64-v8a/compile_commands.json build
```
This commit is contained in:
JingMatrix 2024-05-19 11:35:27 +02:00
parent ecaf1e53eb
commit 56a058bd27
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.project
.settings
.cache
*.iml
.gradle
/local.properties

View File

@ -35,7 +35,8 @@ cmaker {
arrayOf(
"-DEXTERNAL_ROOT=${File(rootDir.absolutePath, "external")}",
"-DCORE_ROOT=${File(rootDir.absolutePath, "core/src/main/jni")}",
"-DANDROID_STL=none"
"-DANDROID_STL=none",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
)
)
val flags = arrayOf(
@ -88,6 +89,7 @@ subprojects {
externalNativeBuild {
cmake {
version = "3.28.1+"
buildStagingDirectory = layout.buildDirectory.get().asFile
}
}

2
external/lsplant vendored

@ -1 +1 @@
Subproject commit 7b856716153cd8effc925e948d2523cedc846462
Subproject commit b0edc5c07ca92ad7fdef21e7422f6ed3c0be5337