Print the problematic headers in these assertions

pull/1320/head
Nirbheek Chauhan 8 years ago
parent 7b3957afbd
commit f71136b89e
  1. 4
      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 = []

Loading…
Cancel
Save