diff options
author | QMK Bot <[email protected]> | 2025-06-11 04:30:11 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2025-06-11 04:30:11 +0000 |
commit | ef6e9a53129777a5f16fb180f633583726376ec4 (patch) | |
tree | 24eee6a5f5f7806ba23a2a58525a23dbff9f8ec4 /lib/python/qmk/compilation_database.py | |
parent | 5bdeb7dad11c1566cf35ea2c70db20f66d1823a8 (diff) | |
parent | 0516cf5ed85874f61944332c175e1b228fd137b2 (diff) | |
download | qmk_firmware-ef6e9a53129777a5f16fb180f633583726376ec4.tar.gz qmk_firmware-ef6e9a53129777a5f16fb180f633583726376ec4.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/compilation_database.py')
-rwxr-xr-x | lib/python/qmk/compilation_database.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/compilation_database.py b/lib/python/qmk/compilation_database.py index 4c88dadbdd..c403297405 100755 --- 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('-') |