Skip to content

Commit 5ed8ad8

Browse files
committed
Updated makefile exporter to not rely on enumerating over map.
No longer supported in Py3.
1 parent 80dde0b commit 5ed8ad8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/export/makefile/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def generate(self):
124124
'to_be_compiled']:
125125
ctx[key] = sorted(ctx[key])
126126
ctx.update(self.format_flags())
127+
127128
# Add the virtual path the the include option in the ASM flags
128-
for index, flag in enumerate(ctx['asm_flags']):
129-
if flag.startswith('-I'):
130-
ctx['asm_flags'][index] = "-I" + ctx['vpath'][0] + "/" + ctx['asm_flags'][index][2:]
129+
ctx['asm_flags'] = map(lambda item: "-I" + ctx['vpath'][0] + "/" + item[2:]
130+
if item.startswith('-I') else item, ctx['asm_flags'])
131131

132132
for templatefile in \
133133
['makefile/%s_%s.tmpl' % (self.TEMPLATE,

0 commit comments

Comments
 (0)