[Lldb-commits] [lldb] 6cc0b00 - [lldb] Only link against Python 3 when LLDB_ENABLE_PYTHON is set.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 17 09:31:58 PDT 2020


Author: Jonas Devlieghere
Date: 2020-08-17T09:31:52-07:00
New Revision: 6cc0b00f4d0a981a858d16c8d46638cf12b43f96

URL: https://github.com/llvm/llvm-project/commit/6cc0b00f4d0a981a858d16c8d46638cf12b43f96
DIFF: https://github.com/llvm/llvm-project/commit/6cc0b00f4d0a981a858d16c8d46638cf12b43f96.diff

LOG: [lldb] Only link against Python 3 when LLDB_ENABLE_PYTHON is set.

Only link against Python3_LIBRARY when LLDB_ENABLE_PYTHON is true. We
have to be more strict now becuase Python3_LIBRARY might be set to
NOTFOUND instead of being not set at all.

Added: 
    

Modified: 
    lldb/tools/intel-features/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/tools/intel-features/CMakeLists.txt b/lldb/tools/intel-features/CMakeLists.txt
index e4979ad5256d9..734167e51bc56 100644
--- a/lldb/tools/intel-features/CMakeLists.txt
+++ b/lldb/tools/intel-features/CMakeLists.txt
@@ -24,6 +24,7 @@ endif()
 
 # Add python wrapper if python not disabled
 if (LLDB_ENABLE_PYTHON AND LLDB_BUILD_INTEL_PT)
+  list(APPEND FEATURE_LIBS ${FEATURE_LIBS} ${Python3_LIBRARIES})
   set(LLDB_INTEL_FEATURES_PYTHON_WRAP
      ${LLDB_BINARY_DIR}/tools/intel-features/scripts/IntelFeaturesPythonWrap.cpp)
   set_source_files_properties(${LLDB_INTEL_FEATURES_PYTHON_WRAP}
@@ -56,7 +57,6 @@ add_lldb_library(lldbIntelFeatures SHARED
 
   LINK_LIBS
     ${FEATURE_LIBS}
-    ${Python3_LIBRARIES}
   )
 
 # Add link dependencies for python wrapper


        


More information about the lldb-commits mailing list