[Lldb-commits] [lldb] r278552 - fix lldb-gtest target of Xcode build

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 12 12:27:05 PDT 2016


Author: tfiala
Date: Fri Aug 12 14:27:05 2016
New Revision: 278552

URL: http://llvm.org/viewvc/llvm-project?rev=278552&view=rev
Log:
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.

Modified:
    lldb/trunk/scripts/Xcode/build-llvm.py

Modified: lldb/trunk/scripts/Xcode/build-llvm.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Xcode/build-llvm.py?rev=278552&r1=278551&r2=278552&view=diff
==============================================================================
--- lldb/trunk/scripts/Xcode/build-llvm.py (original)
+++ lldb/trunk/scripts/Xcode/build-llvm.py Fri Aug 12 14:27:05 2016
@@ -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 ():




More information about the lldb-commits mailing list