aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-01-20 03:02:33 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-01-21 20:17:21 +0530
commitf71136b89e38a90d7391a410daab818a8e1157ac (patch)
tree489538ba53151a52b53a16cf2e1dd80237b62867
parent7b3957afbd79ee812f5b83540210c566639a4c91 (diff)
downloadmeson-f71136b89e38a90d7391a410daab818a8e1157ac.zip
meson-f71136b89e38a90d7391a410daab818a8e1157ac.tar.gz
meson-f71136b89e38a90d7391a410daab818a8e1157ac.tar.bz2
Print the problematic headers in these assertions
-rw-r--r--mesonbuild/backend/ninjabackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index cdffb76..8d08824 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -1758,9 +1758,9 @@ rule FORTRAN_DEP_HACK
Compiles C/C++, ObjC/ObjC++, Fortran, and D sources
"""
if isinstance(src, str) and src.endswith('.h'):
- raise AssertionError('BUG: sources should not contain headers')
+ raise AssertionError('BUG: sources should not contain headers {!r}'.format(src))
if isinstance(src, RawFilename) and src.fname.endswith('.h'):
- raise AssertionError('BUG: sources should not contain headers')
+ raise AssertionError('BUG: sources should not contain headers {!r}'.format(src.fname))
extra_orderdeps = []
compiler = get_compiler_for_source(target.compilers.values(), src)
commands = []