diff options
-rwxr-xr-x | lldb/scripts/Xcode/build-llvm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index b594a8cfe17..e8d1b63d3f0 100755 --- a/lldb/scripts/Xcode/build-llvm.py +++ b/lldb/scripts/Xcode/build-llvm.py @@ -5,6 +5,7 @@ import hashlib import fnmatch import os import platform +import re import subprocess import sys @@ -132,7 +133,9 @@ def CMAKE_ENVIRONMENT (): def collect_archives_in_path (path): files = os.listdir(path) - return [os.path.join(path, file) for file in files if file.endswith(".a")] + # Only use libclang and libLLVM archives, and exclude libclang_rt + regexp = "^lib(clang[^_]|LLVM).*$" + return [os.path.join(path, file) for file in files if file.endswith(".a") and re.match(regexp, file)] def archive_list (): paths = library_paths() |