summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2025-06-11 04:30:11 +0000
committerQMK Bot <hello@qmk.fm>2025-06-11 04:30:11 +0000
commitef6e9a53129777a5f16fb180f633583726376ec4 (patch)
tree24eee6a5f5f7806ba23a2a58525a23dbff9f8ec4 /lib
parent5bdeb7dad11c1566cf35ea2c70db20f66d1823a8 (diff)
parent0516cf5ed85874f61944332c175e1b228fd137b2 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rwxr-xr-xlib/python/qmk/compilation_database.py4
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]:
41 if binary.endswith("gcc") or binary.endswith("g++"): 41 if binary.endswith("gcc") or binary.endswith("g++"):
42 invocation = [binary, '-dM', '-E'] 42 invocation = [binary, '-dM', '-E']
43 if binary.endswith("gcc"): 43 if binary.endswith("gcc"):
44 invocation.extend(['-x', 'c']) 44 invocation.extend(['-x', 'c', '-std=gnu11'])
45 elif binary.endswith("g++"): 45 elif binary.endswith("g++"):
46 invocation.extend(['-x', 'c++']) 46 invocation.extend(['-x', 'c++', '-std=gnu++14'])
47 compiler_args = shlex.split(compiler_args) 47 compiler_args = shlex.split(compiler_args)
48 invocation.extend(compiler_args) 48 invocation.extend(compiler_args)
49 invocation.append('-') 49 invocation.append('-')