diff --git a/waflib/Tools/c_preproc.py b/waflib/Tools/c_preproc.py index b59db3ef..e78d620a 100644 --- a/waflib/Tools/c_preproc.py +++ b/waflib/Tools/c_preproc.py @@ -774,6 +774,8 @@ def format_defines(lst): elif pos > 0: # all others are assumed to be -DX=Y ret.append('%s %s' % (y[:pos], y[pos+1:])) + else: + raise ValueError('Invalid define expression %r' % y) return ret class c_parser(object):