From 30ef8d8cb462a9bb8f6d9d377618d80698f009fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E7=84=9A=20=E5=AF=8C=E8=89=AF?= Date: Fri, 9 Jun 2023 13:24:10 +0800 Subject: [PATCH] compiler: skip demangling list of empty names --- artiq/compiler/targets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index df55e6bd8..0dd835a0a 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -256,6 +256,8 @@ class Target: return backtrace def demangle(self, names): + if not any(names): + return names with RunTool([self.tool_cxxfilt] + names) as results: return results["__stdout__"].read().rstrip().split("\n")