Skip to content

Commit 6bfde2e

Browse files
committed
Compile compile_commands.json into the source folder so that clangd works
1 parent 4ed28f0 commit 6bfde2e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,4 @@ pom-mx.xml
9797
/*-venv/
9898
.aider*
9999
*.iprof.gz
100+
compile_commands.json

graalpython/com.oracle.graal.python.cext/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ function(require_var var)
3636
endfunction()
3737

3838
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
39+
add_custom_target(compile_commands_target ALL
40+
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/compile_commands.json" "${CMAKE_SOURCE_DIR}")
3941

4042
require_var(GRAALPY_PARENT_DIR)
4143
require_var(CAPI_INC_DIR)

graalpython/com.oracle.graal.python.cext/compile_flags.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)