diff options
| -rwxr-xr-x | lib/python/qmk/cli/generate/compilation_database.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/compilation_database.py b/lib/python/qmk/cli/generate/compilation_database.py index 602635270..7ac0f740f 100755 --- 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]: | |||
| 26 | 26 | ||
| 27 | # Actually query xxxxxx-gcc to find its include paths. | 27 | # Actually query xxxxxx-gcc to find its include paths. |
| 28 | if binary.endswith("gcc") or binary.endswith("g++"): | 28 | if binary.endswith("gcc") or binary.endswith("g++"): |
| 29 | result = cli.run([binary, '-E', '-Wp,-v', '-'], capture_output=True, check=True, input='\n') | 29 | # (TODO): Remove 'stdin' once 'input' no longer causes issues under MSYS |
| 30 | result = cli.run([binary, '-E', '-Wp,-v', '-'], capture_output=True, check=True, stdin=None, input='\n') | ||
| 30 | paths = [] | 31 | paths = [] |
| 31 | for line in result.stderr.splitlines(): | 32 | for line in result.stderr.splitlines(): |
| 32 | if line.startswith(" "): | 33 | if line.startswith(" "): |
