mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Default a define with no value to 1.
This commit is contained in:
@@ -156,7 +156,10 @@ class buildset:
|
|||||||
elif l[0] == '%':
|
elif l[0] == '%':
|
||||||
if l.startswith('%define'):
|
if l.startswith('%define'):
|
||||||
ls = l.split()
|
ls = l.split()
|
||||||
self.defaults[ls[1].strip()] = ('none', 'none', ls[2].strip())
|
if len(ls) > 2:
|
||||||
|
self.defaults[ls[1].strip()] = ('none', 'none', ls[2].strip())
|
||||||
|
else:
|
||||||
|
self.defaults[ls[1].strip()] = ('none', 'none', '1')
|
||||||
elif l.startswith('%include'):
|
elif l.startswith('%include'):
|
||||||
ls = l.split(' ')
|
ls = l.split(' ')
|
||||||
configs += self.parse(ls[1].strip())
|
configs += self.parse(ls[1].strip())
|
||||||
|
Reference in New Issue
Block a user