aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-07-08 11:43:57 -0700
committerEli Schwartz <eschwartz93@gmail.com>2023-01-03 14:49:02 -0500
commitb9ef66292602349c7a48d8779355bdc87cfc06fa (patch)
tree32c2b6a370a1debddbd40c3155bedfa300e633ae /mesonbuild/interpreter/interpreter.py
parent11b9ad2e29aa3b0a273a94379b18f2e429b3b555 (diff)
downloadmeson-b9ef66292602349c7a48d8779355bdc87cfc06fa.zip
meson-b9ef66292602349c7a48d8779355bdc87cfc06fa.tar.gz
meson-b9ef66292602349c7a48d8779355bdc87cfc06fa.tar.bz2
reformat some warnings for better code readability
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 5347120..92d58aa 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2905,10 +2905,12 @@ class Interpreter(InterpreterBase, HoldableObject):
return
if (self.coredata.options[OptionKey('b_lundef')].value and
self.coredata.options[OptionKey('b_sanitize')].value != 'none'):
- mlog.warning('''Trying to use {} sanitizer on Clang with b_lundef.
-This will probably not work.
-Try setting b_lundef to false instead.'''.format(self.coredata.options[OptionKey('b_sanitize')].value),
- location=self.current_node)
+ value = self.coredata.options[OptionKey('b_sanitize')].value
+ mlog.warning(textwrap.dedent(f'''\
+ Trying to use {value} sanitizer on Clang with b_lundef.
+ This will probably not work.
+ Try setting b_lundef to false instead.'''),
+ location=self.current_node) # noqa: E128
# Check that the indicated file is within the same subproject
# as we currently are. This is to stop people doing