mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-06 00:15:30 +01:00
Catch errors in format_defines
This commit is contained in:
parent
8b32d93ec3
commit
e77b8dc24b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user