Skip to content

Commit 7c3fe84

Browse files
committed
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 ```
1 parent 1f80050 commit 7c3fe84

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.project
22
.settings
3+
.cache
34
*.iml
45
.gradle
56
/local.properties

build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ cmaker {
3535
arrayOf(
3636
"-DEXTERNAL_ROOT=${File(rootDir.absolutePath, "external")}",
3737
"-DCORE_ROOT=${File(rootDir.absolutePath, "core/src/main/jni")}",
38-
"-DANDROID_STL=none"
38+
"-DANDROID_STL=none",
39+
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
3940
)
4041
)
4142
val flags = arrayOf(
@@ -88,6 +89,7 @@ subprojects {
8889
externalNativeBuild {
8990
cmake {
9091
version = "3.28.1+"
92+
buildStagingDirectory = layout.buildDirectory.get().asFile
9193
}
9294
}
9395

0 commit comments

Comments
 (0)