Skip to content

Commit 9bcbec9

Browse files
committed
improve: turn on CMAKE_EXPORT_COMPILE_COMMANDS
To make `clangd` work properly, one needs to make symbolic links ``` ln -sf $PWD/loader/build/tools/debug/arm64-v8a/compile_commands.json loader/build ```
1 parent d498a9a commit 9bcbec9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

loader/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ android {
4949

5050
externalNativeBuild.cmake {
5151
path("src/CMakeLists.txt")
52+
buildStagingDirectory = layout.buildDirectory.get().asFile
5253
}
5354

5455
defaultConfig {

loader/src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ project("loader")
33

44
find_package(cxx REQUIRED CONFIG)
55

6+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
7+
68
add_definitions(-DZKSU_VERSION=\"${ZKSU_VERSION}\")
79
810
aux_source_directory(common COMMON_SRC_LIST)

0 commit comments

Comments
 (0)