aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-12 22:58:42 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-12 23:13:26 -0500
commit7a1e8eecaf3ddcbdfe18c8c05ae0c02f0464f751 (patch)
tree1cd7f0d90c5ed86c8bfe85c1335521618761bb44 /mesonbuild
parentf08aabfb77753dd7b97d3e90c0d764f3f6332dfb (diff)
downloadmeson-7a1e8eecaf3ddcbdfe18c8c05ae0c02f0464f751.zip
meson-7a1e8eecaf3ddcbdfe18c8c05ae0c02f0464f751.tar.gz
meson-7a1e8eecaf3ddcbdfe18c8c05ae0c02f0464f751.tar.bz2
formatting improvement for include_directories sandbox violation warning
Print the location the warning was encountered, and quote the string that triggered it. This makes it easier to read what actually happened.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 12abdf0..0987309 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2462,9 +2462,9 @@ external dependencies (including libraries) must go to "dependencies".''')
try:
self.validate_within_subproject(self.subdir, a)
except InterpreterException:
- mlog.warning('include_directories sandbox violation!')
+ mlog.warning('include_directories sandbox violation!', location=self.current_node)
print(textwrap.dedent(f'''\
- The project is trying to access the directory {a} which belongs to a different
+ The project is trying to access the directory {a!r} which belongs to a different
subproject. This is a problem as it hardcodes the relative paths of these two projects.
This makes it impossible to compile the project in any other directory layout and also
prevents the subproject from changing its own directory layout.