fix lldb-gtest target of Xcode build
authorTodd Fiala <todd.fiala@gmail.com>
Fri, 12 Aug 2016 19:27:05 +0000 (19:27 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Fri, 12 Aug 2016 19:27:05 +0000 (19:27 +0000)
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

lldb/scripts/Xcode/build-llvm.py

index e8d1b63..e7b91bc 100755 (executable)
@@ -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 ():