[Lldb-commits] [lldb] r372905 - [lldb] Excludes private headers from SWIG dependency.

Haibo Huang via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 25 11:17:45 PDT 2019


Author: hhb
Date: Wed Sep 25 11:17:45 2019
New Revision: 372905

URL: http://llvm.org/viewvc/llvm-project?rev=372905&view=rev
Log:
[lldb] Excludes private headers from SWIG dependency.

Reviewers: xiaobai

Subscribers: mgorny, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68040

Modified:
    lldb/trunk/scripts/CMakeLists.txt

Modified: lldb/trunk/scripts/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/CMakeLists.txt?rev=372905&r1=372904&r2=372905&view=diff
==============================================================================
--- lldb/trunk/scripts/CMakeLists.txt (original)
+++ lldb/trunk/scripts/CMakeLists.txt Wed Sep 25 11:17:45 2019
@@ -4,6 +4,12 @@ file(GLOB SWIG_HEADERS
   ${LLDB_SOURCE_DIR}/include/lldb/API/*.h
   ${LLDB_SOURCE_DIR}/include/lldb/*.h
 )
+file(GLOB SWIG_PRIVATE_HEADERS
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-private*.h
+)
+foreach(private_header ${SWIG_PRIVATE_HEADERS})
+  list(REMOVE_ITEM SWIG_HEADERS ${private_header})
+endforeach()
 
 if(LLDB_BUILD_FRAMEWORK)
   set(framework_arg --framework --target-platform Darwin)




More information about the lldb-commits mailing list