From: Todd Fiala Date: Fri, 12 Aug 2016 19:27:05 +0000 (+0000) Subject: fix lldb-gtest target of Xcode build X-Git-Tag: llvmorg-4.0.0-rc1~12556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af32ccb195ece1a25511d1d35d8c14ce1b58ee9b;p=platform%2Fupstream%2Fllvm.git fix lldb-gtest target of Xcode build Change r278527 was filtering out too many libraries. The Xcode lldb-gtest target depends on linking libgtest*.a, but those were not being included. This caused the lldb-gtest linkage step to fail to find a main entry point that is present in the filtered out libs. This change restores the libgtest* libraries to the link list by whitelisting them in the filter. llvm-svn: 278552 --- diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index e8d1b63..e7b91bc 100755 --- a/lldb/scripts/Xcode/build-llvm.py +++ b/lldb/scripts/Xcode/build-llvm.py @@ -134,7 +134,7 @@ def CMAKE_ENVIRONMENT (): def collect_archives_in_path (path): files = os.listdir(path) # Only use libclang and libLLVM archives, and exclude libclang_rt - regexp = "^lib(clang[^_]|LLVM).*$" + regexp = "^lib(clang[^_]|LLVM|gtest).*$" return [os.path.join(path, file) for file in files if file.endswith(".a") and re.match(regexp, file)] def archive_list ():