diff options
author | Nick Brassel <nick@tzarc.org> | 2024-02-22 23:47:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 12:47:42 +0000 |
commit | 56802f506cee22730e004b0695d87e9e9c5983af (patch) | |
tree | 28b15990af352965b177c1ce5171c33b65ce8de5 /lib/python/qmk/cli | |
parent | c6668b9cd9d153ed8cdd59f2f96d9deba1001e1a (diff) |
Ensure `qmk generate-compilation-database` copies to userspace as well. (#23129)
Diffstat (limited to 'lib/python/qmk/cli')
-rwxr-xr-x | lib/python/qmk/cli/generate/compilation_database.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/compilation_database.py b/lib/python/qmk/cli/generate/compilation_database.py index 5100d2b6d2..a2190fee66 100755 --- a/lib/python/qmk/cli/generate/compilation_database.py +++ b/lib/python/qmk/cli/generate/compilation_database.py @@ -17,6 +17,7 @@ from qmk.constants import QMK_FIRMWARE from qmk.decorators import automagic_keyboard, automagic_keymap from qmk.keyboard import keyboard_completer, keyboard_folder from qmk.keymap import keymap_completer +from qmk.build_targets import KeyboardKeymapBuildTarget @lru_cache(maxsize=10) @@ -138,4 +139,5 @@ def generate_compilation_database(cli: MILC) -> Union[bool, int]: elif not current_keymap: cli.log.error('Could not determine keymap!') - return write_compilation_database(current_keyboard, current_keymap, QMK_FIRMWARE / 'compile_commands.json') + target = KeyboardKeymapBuildTarget(current_keyboard, current_keymap) + return target.generate_compilation_database() |