From 44702bec5fb88b64373c87a7830a99e17a27c3ec Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Mar 2023 20:33:27 +0000 Subject: [PATCH] build: move compile_commands.json to build directory --- Makefile | 2 +- tools/make/generate_compile_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b3aac7..e0716e0 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ clean: @printf " \033[1;93mRM\033[0m Deleting build files.\n" @rm -rf $(BUILD_DIR) -$(CONFIG_DIR)/compile_commands.json: +$(BUILD_DIR)/compile_commands.json: @printf " \033[1;93mGEN\033[0m Generating compiler database.\n" @./tools/make/generate_compile_commands.py diff --git a/tools/make/generate_compile_commands.py b/tools/make/generate_compile_commands.py index 161ddeb..f7c2ac9 100755 --- a/tools/make/generate_compile_commands.py +++ b/tools/make/generate_compile_commands.py @@ -55,6 +55,6 @@ for line in make_output_lines: os.system('make') -out_file = open('.config/compile_commands.json', 'w') +out_file = open('build/compile_commands.json', 'w') json.dump(compile_db, out_file, indent=4)