mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
allow values in DEFINES to contain equals signs. r=pike (no bug)
This commit is contained in:
parent
aee6f394a9
commit
b486ea404f
@ -174,8 +174,7 @@ class Preprocessor:
|
||||
for k,v in os.environ.iteritems():
|
||||
self.context[k] = v
|
||||
def handleD(option, opt, value, parser):
|
||||
vals = value.split('=')
|
||||
assert len(vals) < 3
|
||||
vals = value.split('=', 1)
|
||||
if len(vals) == 1:
|
||||
vals.append(1)
|
||||
elif unescapeDefines and escapedValue.match(vals[1]):
|
||||
|
Loading…
Reference in New Issue
Block a user