aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/build_targets.py
diff options
context:
space:
mode:
authorNick Brassel <[email protected]>2025-05-06 09:52:41 +1000
committerGitHub <[email protected]>2025-05-06 09:52:41 +1000
commitac991405d0c9f47e815786f4732edd00d0f4f571 (patch)
tree218b9903db6c5dc3ff74582829787751a2ae0081 /lib/python/qmk/build_targets.py
parent842c8401452f83e691a9df97ffba52a389c885c8 (diff)
downloadqmk_firmware-ac991405d0c9f47e815786f4732edd00d0f4f571.tar.gz
qmk_firmware-ac991405d0c9f47e815786f4732edd00d0f4f571.zip
Deprecate `qmk generate-compilation-database`. (#25237)
Diffstat (limited to 'lib/python/qmk/build_targets.py')
-rw-r--r--lib/python/qmk/build_targets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/build_targets.py b/lib/python/qmk/build_targets.py
index df5a5ffb42..35a5f89f91 100644
--- a/lib/python/qmk/build_targets.py
+++ b/lib/python/qmk/build_targets.py
@@ -12,6 +12,7 @@ from qmk.keyboard import keyboard_folder
from qmk.info import keymap_json
from qmk.keymap import locate_keymap
from qmk.path import is_under_qmk_firmware, is_under_qmk_userspace, unix_style_path
+from qmk.compilation_database import write_compilation_database
# These must be kept in the order in which they're applied to $(TARGET) in the makefiles in order to ensure consistency.
TARGET_FILENAME_MODIFIERS = ['FORCE_LAYOUT', 'CONVERT_TO']
@@ -150,7 +151,6 @@ class BuildTarget:
def generate_compilation_database(self, build_target: str = None, skip_clean: bool = False, **env_vars) -> None:
self.prepare_build(build_target=build_target, **env_vars)
command = self.compile_command(build_target=build_target, dry_run=True, **env_vars)
- from qmk.cli.generate.compilation_database import write_compilation_database # Lazy load due to circular references
output_path = QMK_FIRMWARE / 'compile_commands.json'
ret = write_compilation_database(command=command, output_path=output_path, skip_clean=skip_clean, **env_vars)
if ret and output_path.exists() and HAS_QMK_USERSPACE: