aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/scripts/symbolextractor.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py
index f4084be..cf486af 100644
--- a/mesonbuild/scripts/symbolextractor.py
+++ b/mesonbuild/scripts/symbolextractor.py
@@ -80,6 +80,9 @@ def call_tool(name: str, args: T.List[str], **kwargs) -> str:
except FileNotFoundError:
print_tool_warning(tool, 'not found')
return None
+ except PermissionError:
+ print_tool_warning(tool, 'not usable')
+ return None
if p.returncode != 0:
print_tool_warning(tool, 'does not work', e)
return None
@@ -90,6 +93,8 @@ def call_tool_nowarn(tool: T.List[str], **kwargs) -> T.Tuple[str, str]:
p, output, e = Popen_safe(tool, **kwargs)
except FileNotFoundError:
return None, '{!r} not found\n'.format(tool[0])
+ except PermissionError:
+ return None, '{!r} not usable\n'.format(tool[0])
if p.returncode != 0:
return None, e
return output, None