From 468219b387af03c5465e01ea589cf5fcb2789b36 Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Thu, 21 Mar 2019 14:44:58 +0000 Subject: [PATCH] Workaround Python's map difference between Python2/3 When the output of map is not used, using a list comprehension or an explicit call to list looks awkward. Differential Revision: https://reviews.llvm.org/D59587 llvm-svn: 356672 --- lldb/scripts/Xcode/build-llvm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index 4d868de..0a9264f 100755 --- a/lldb/scripts/Xcode/build-llvm.py +++ b/lldb/scripts/Xcode/build-llvm.py @@ -239,7 +239,8 @@ def check_out_if_needed(spec): def all_check_out_if_needed(): - map(check_out_if_needed, XCODE_REPOSITORIES()) + for r in XCODE_REPOSITORIES(): + check_out_if_needed(r) def should_build_llvm(): @@ -263,7 +264,8 @@ def setup_source_symlink(repo): def setup_source_symlinks(): - map(setup_source_symlink, XCODE_REPOSITORIES()) + for r in XCODE_REPOSITORIES(): + setup_source_symlink(r) def setup_build_symlink(): -- 2.7.4