forked from M-Labs/artiq
1
0
Fork 0

compiler: skip demangling list of empty names

This commit is contained in:
Egor Savkin 2023-06-09 13:24:10 +08:00 committed by GitHub
parent 7ad32d903a
commit 30ef8d8cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ class Target:
return backtrace return backtrace
def demangle(self, names): def demangle(self, names):
if not any(names):
return names
with RunTool([self.tool_cxxfilt] + names) as results: with RunTool([self.tool_cxxfilt] + names) as results:
return results["__stdout__"].read().rstrip().split("\n") return results["__stdout__"].read().rstrip().split("\n")