Skip to content

Commit ee53d67

Browse files
committed
Create compile_commands.json if script exists
1 parent 20a2cc1 commit ee53d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ linux_menuconfig:
194194
linux $(KERNEL_IMAGE): $(LINUX_CONFIG) | $(CLANG_DIR)
195195
+ $(LINUX_MAKE)
196196
# Older versions of Linux don't have this script
197-
ifneq (,$(wildcard ./.env))
198-
$(LINUX_SRC)/scripts/clang-tools/gen_compile_commands.py -d $(LINUX_OUT)
197+
ifneq (,$(wildcard $(LINUX_SRC)/scripts/clang-tools/gen_compile_commands.py))
198+
cd $(LINUX_SRC) && ./scripts/clang-tools/gen_compile_commands.py -d $(LINUX_OUT)
199199
endif
200200

201201

0 commit comments

Comments
 (0)