mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
lldb: fix 8&9
This commit is contained in:
parent
cc7740ae77
commit
674a24e5bb
|
@ -105,3 +105,16 @@ index a9059dd..d76a47d 100644
|
|||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
|
||||
|
||||
set(LLDB_BUILT_STANDALONE 1)
|
||||
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
|
||||
index 3598247..bd60451 100644
|
||||
--- a/scripts/CMakeLists.txt
|
||||
+++ b/scripts/CMakeLists.txt
|
||||
@@ -47,7 +47,7 @@ if(NOT LLDB_BUILD_FRAMEWORK)
|
||||
endif()
|
||||
|
||||
set(SWIG_PYTHON_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}/${swig_python_subdir})
|
||||
- set(SWIG_INSTALL_DIR lib${LLVM_LIBDIR_SUFFIX})
|
||||
+ set(SWIG_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX})
|
||||
|
||||
# Install the LLDB python module
|
||||
install(DIRECTORY ${SWIG_PYTHON_DIR} DESTINATION ${SWIG_INSTALL_DIR})
|
||||
|
|
|
@ -89,3 +89,17 @@ index b726797..1f057ac 100644
|
|||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
|
||||
|
||||
set(LLDB_BUILT_STANDALONE 1)
|
||||
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
|
||||
index 7de7973..b70aecc 100644
|
||||
--- a/scripts/CMakeLists.txt
|
||||
+++ b/scripts/CMakeLists.txt
|
||||
@@ -50,7 +50,8 @@ if(NOT LLDB_BUILD_FRAMEWORK)
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
- -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(True, False, ''))"
|
||||
+ -c "import distutils.sysconfig, sys; print(distutils.sysconfig.get_python_lib(True, False, sys.argv[1]))"
|
||||
+ ${CMAKE_INSTALL_LIBDIR}/../
|
||||
OUTPUT_VARIABLE SWIG_INSTALL_DIR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue