1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 00:11:16 +01:00

Merge pull request #18205 from maribu/dist/tools/compile_commands

dist/tools/compile_commands: fix error handling
This commit is contained in:
Marian Buschsieweke 2022-06-14 13:16:41 +02:00 committed by GitHub
commit 9827e573c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ def detect_includes_and_version_gcc(compiler):
except FileNotFoundError:
msg = f"Compiler {compiler} not found, not adding system include paths\n"
sys.stderr.write(msg)
return []
return ([], "")
stderrdata = stderrdata.decode("utf-8")
version = REGEX_VERSION.search(stderrdata).group(1)