[Lldb-commits] [PATCH] D68728: [lldb] Put site-packages into a sub dir of CMAKE_CFG_INTDIR
    Haibo Huang via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Oct  9 14:32:00 PDT 2019
    
    
  
hhb updated this revision to Diff 224166.
hhb added a comment.
Simplify the path
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68728/new/
https://reviews.llvm.org/D68728
Files:
  lldb/CMakeLists.txt
Index: lldb/CMakeLists.txt
===================================================================
--- lldb/CMakeLists.txt
+++ lldb/CMakeLists.txt
@@ -202,8 +202,9 @@
     if(LLDB_BUILD_FRAMEWORK)
       set(lldb_python_build_path "${liblldb_build_dir}/LLDB.framework/Resources/Python/lldb")
     else()
-      set(lldb_python_build_path "${CMAKE_BINARY_DIR}/${LLDB_PYTHON_RELATIVE_PATH}/lldb")
+      set(lldb_python_build_path "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_PYTHON_RELATIVE_PATH}/lldb")
     endif()
+    get_filename_component(lldb_python_build_path ${lldb_python_build_path} ABSOLUTE)
 
     # Add a Post-Build Event to copy over Python files and create the symlink
     # to liblldb.so for the Python API(hardlink on Windows).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68728.224166.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191009/97308f67/attachment-0001.bin>
    
    
More information about the lldb-commits
mailing list