mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Changing spacing
This commit is contained in:
committed by
GitHub
parent
d1f862af94
commit
d03c3694ed
@@ -151,15 +151,9 @@ 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)
|
||||
|
||||
if HAS_QMK_USERSPACE:
|
||||
userspace_out = QMK_USERSPACE / 'compile_commands.json'
|
||||
ret = write_compilation_database(
|
||||
command=command,
|
||||
output_path=userspace_out,
|
||||
skip_clean=skip_clean,
|
||||
**env_vars,
|
||||
)
|
||||
ret = write_compilation_database(command=command, output_path=output_path, skip_clean=skip_clean, **env_vars)
|
||||
if ret and userspace_out.exists():
|
||||
firmware_out = QMK_FIRMWARE / 'compile_commands.json'
|
||||
try:
|
||||
@@ -168,14 +162,9 @@ class BuildTarget:
|
||||
# Copy is best-effort; ignore any failure
|
||||
pass
|
||||
return ret
|
||||
|
||||
|
||||
firmware_out = QMK_FIRMWARE / 'compile_commands.json'
|
||||
return write_compilation_database(
|
||||
command=command,
|
||||
output_path=firmware_out,
|
||||
skip_clean=skip_clean,
|
||||
**env_vars,
|
||||
)
|
||||
return write_compilation_database(command=command, output_path=output_path, skip_clean=skip_clean, **env_vars)
|
||||
|
||||
def compile(self, build_target: str = None, dry_run: bool = False, **env_vars) -> None:
|
||||
if self._clean or self._compiledb:
|
||||
|
||||
Reference in New Issue
Block a user