qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit 0516cf5ed85874f61944332c175e1b228fd137b2
parent 802a199bbd5dc5a533d912b1e508a84d1de08724
Author: Nick Brassel <nick@tzarc.org>
Date:   Wed, 11 Jun 2025 14:29:37 +1000

Specify language standard when generating compilation database. (#25354)


Diffstat:
Mlib/python/qmk/compilation_database.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/python/qmk/compilation_database.py b/lib/python/qmk/compilation_database.py @@ -41,9 +41,9 @@ def cpu_defines(binary: str, compiler_args: str) -> List[str]: if binary.endswith("gcc") or binary.endswith("g++"): invocation = [binary, '-dM', '-E'] if binary.endswith("gcc"): - invocation.extend(['-x', 'c']) + invocation.extend(['-x', 'c', '-std=gnu11']) elif binary.endswith("g++"): - invocation.extend(['-x', 'c++']) + invocation.extend(['-x', 'c++', '-std=gnu++14']) compiler_args = shlex.split(compiler_args) invocation.extend(compiler_args) invocation.append('-')