clike compilers: use MesonBugException instead of AssertionError

Follow-up to #12223
pull/12333/head
Marvin Scholz 1 year ago committed by Eli Schwartz
parent 7143a695fd
commit dec4f72da4
  1. 2
      mesonbuild/compilers/mixins/clike.py

@ -697,7 +697,7 @@ class CLikeCompiler(Compiler):
star_idx = p.stdout.find(delim_start) star_idx = p.stdout.find(delim_start)
end_idx = p.stdout.rfind(delim_end) end_idx = p.stdout.rfind(delim_end)
if (star_idx == -1) or (end_idx == -1) or (star_idx == end_idx): if (star_idx == -1) or (end_idx == -1) or (star_idx == end_idx):
raise AssertionError('BUG: Delimiters not found in preprocessor output!') raise mesonlib.MesonBugException('Delimiters not found in preprocessor output.')
define_value = p.stdout[star_idx + len(delim_start):end_idx] define_value = p.stdout[star_idx + len(delim_start):end_idx]
if define_value == sentinel_undef: if define_value == sentinel_undef:

Loading…
Cancel
Save