Updated makefile exporter to not rely on enumerating over map.

No longer supported in Py3.
pull/7111/head
Cruz Monrreal II 2018-06-04 18:36:17 -05:00
parent 80dde0b953
commit 5ed8ad8ffe
1 changed files with 3 additions and 3 deletions

View File

@ -124,10 +124,10 @@ class Makefile(Exporter):
'to_be_compiled']:
ctx[key] = sorted(ctx[key])
ctx.update(self.format_flags())
# Add the virtual path the the include option in the ASM flags
for index, flag in enumerate(ctx['asm_flags']):
if flag.startswith('-I'):
ctx['asm_flags'][index] = "-I" + ctx['vpath'][0] + "/" + ctx['asm_flags'][index][2:]
ctx['asm_flags'] = map(lambda item: "-I" + ctx['vpath'][0] + "/" + item[2:]
if item.startswith('-I') else item, ctx['asm_flags'])
for templatefile in \
['makefile/%s_%s.tmpl' % (self.TEMPLATE,