Skip to content

Commit 6e4c334

Browse files
rnavmpe
authored andcommitted
build: Generate compile_commands.py
Those using a language server benefit by having compile_commands.py being re-generated on builds to ensure the right set of build flags are being used. Generate the same on each build. While this could be made optional, the script to generate the same runs almost instantly.
1 parent 50f90de commit 6e4c334

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build/scripts/container-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ if [[ "$1" == "kernel" ]]; then
128128

129129
echo "## Kernel build completed rc = $rc"
130130

131+
/linux/scripts/clang-tools/gen_compile_commands.py -o /output/compile_commands.json /output > /dev/null 2>&1 || true
132+
131133
if [[ -f /output/vmlinux ]]; then
132134
size /output/vmlinux
133135
fi

0 commit comments

Comments
 (0)