Skip to content

Commit

Permalink
Create compile_commands.json if script exists
Browse files Browse the repository at this point in the history
  • Loading branch information
gsingh93 committed Feb 26, 2024
1 parent 20a2cc1 commit ee53d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ linux_menuconfig:
linux $(KERNEL_IMAGE): $(LINUX_CONFIG) | $(CLANG_DIR)
+ $(LINUX_MAKE)
# Older versions of Linux don't have this script
ifneq (,$(wildcard ./.env))
$(LINUX_SRC)/scripts/clang-tools/gen_compile_commands.py -d $(LINUX_OUT)
ifneq (,$(wildcard $(LINUX_SRC)/scripts/clang-tools/gen_compile_commands.py))
cd $(LINUX_SRC) && ./scripts/clang-tools/gen_compile_commands.py -d $(LINUX_OUT)
endif


Expand Down

0 comments on commit ee53d67

Please sign in to comment.