diff options
author | Serge Guelton <sguelton@redhat.com> | 2019-03-21 14:44:58 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@redhat.com> | 2019-03-21 14:44:58 +0000 |
commit | 468219b387af03c5465e01ea589cf5fcb2789b36 (patch) | |
tree | c36d1c10b7d679b38b05c6a7c8aaa863636cb5a7 /lldb/scripts/Xcode/build-llvm.py | |
parent | bfb779188ff0c5b049c17f8f2e034848d7537cbe (diff) | |
download | bcm5719-llvm-468219b387af03c5465e01ea589cf5fcb2789b36.tar.gz bcm5719-llvm-468219b387af03c5465e01ea589cf5fcb2789b36.zip |
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
Diffstat (limited to 'lldb/scripts/Xcode/build-llvm.py')
-rwxr-xr-x | lldb/scripts/Xcode/build-llvm.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index 4d868de6b10..0a9264f3c4a 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(): |