qmk_firmware

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

commit 1a8a842cfb3e87a82afb57ba29ca59c5fa6fe97b
parent 906108fb486797ab2f3eb7c3a6f70e099c1199e6
Author: Joel Challis <git@zvecr.com>
Date:   Wed, 29 Dec 2021 21:35:35 +0000

Fix compilation-database command under MSYS (#15652)

* Fix compilation-database command under MSYS

* Add comment
Diffstat:
Mlib/python/qmk/cli/generate/compilation_database.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/python/qmk/cli/generate/compilation_database.py b/lib/python/qmk/cli/generate/compilation_database.py @@ -26,7 +26,8 @@ def system_libs(binary: str) -> List[Path]: # Actually query xxxxxx-gcc to find its include paths. if binary.endswith("gcc") or binary.endswith("g++"): - result = cli.run([binary, '-E', '-Wp,-v', '-'], capture_output=True, check=True, input='\n') + # (TODO): Remove 'stdin' once 'input' no longer causes issues under MSYS + result = cli.run([binary, '-E', '-Wp,-v', '-'], capture_output=True, check=True, stdin=None, input='\n') paths = [] for line in result.stderr.splitlines(): if line.startswith(" "):