diff --git a/tools/export/makefile/__init__.py b/tools/export/makefile/__init__.py index e812e2be49..430435e3bc 100644 --- a/tools/export/makefile/__init__.py +++ b/tools/export/makefile/__init__.py @@ -165,7 +165,7 @@ class Makefile(Exporter): flags = {} for k, v in self.flags.items(): if k in ['c_flags', 'cxx_flags']: - flags[k] = map(lambda x: x.replace('"', '\\"'), v) + flags[k] = list(map(lambda x: x.replace('"', '\\"'), v)) else: flags[k] = v