mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #275936 from wegank/lldb-14-patch-revert
lldb_14: fix broken bindings again
This commit is contained in:
commit
d42bc1bafe
@ -1,13 +0,0 @@
|
|||||||
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
|
|
||||||
index 82a52da89a7e..5127dc1d8f41 100644
|
|
||||||
--- a/bindings/python/CMakeLists.txt
|
|
||||||
+++ b/bindings/python/CMakeLists.txt
|
|
||||||
@@ -160,7 +160,7 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
|
|
||||||
if(LLDB_BUILD_FRAMEWORK)
|
|
||||||
set(LLDB_PYTHON_INSTALL_PATH ${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Versions/${LLDB_FRAMEWORK_VERSION}/Resources/Python)
|
|
||||||
else()
|
|
||||||
- set(LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_RELATIVE_PATH})
|
|
||||||
+ set(LLDB_PYTHON_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}/../${LLDB_PYTHON_RELATIVE_PATH})
|
|
||||||
endif()
|
|
||||||
if (NOT CMAKE_CFG_INTDIR STREQUAL ".")
|
|
||||||
string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_INSTALL_PATH})
|
|
@ -13,12 +13,6 @@ in (llvmPackages.lldb.overrideAttrs (oldAttrs: rec {
|
|||||||
inherit llvmSrc;
|
inherit llvmSrc;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = oldAttrs.patches ++ [
|
|
||||||
# backport of https://github.com/NixOS/nixpkgs/commit/0d3002334850a819d1a5c8283c39f114af907cd4
|
|
||||||
# remove when https://github.com/NixOS/nixpkgs/issues/166604 fixed
|
|
||||||
./fix-python-installation.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
# installCheck for lldb_14 currently broken
|
# installCheck for lldb_14 currently broken
|
||||||
|
@ -1,34 +1,29 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/bindings/lua/CMakeLists.txt b/bindings/lua/CMakeLists.txt
|
||||||
index 79d451965ed4..78188978d6de 100644
|
index 1a739a980..59f8fc3a0 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/bindings/lua/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/bindings/lua/CMakeLists.txt
|
||||||
@@ -10,6 +10,8 @@ set(CMAKE_MODULE_PATH
|
@@ -56,7 +56,7 @@ function(finish_swig_lua swig_target lldb_lua_bindings_dir lldb_lua_target_dir)
|
||||||
# If we are not building as part of LLVM, build LLDB as a standalone project,
|
|
||||||
# using LLVM as an external library.
|
|
||||||
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|
||||||
+ include(GNUInstallDirs)
|
|
||||||
+
|
|
||||||
project(lldb)
|
|
||||||
set(LLDB_BUILT_STANDALONE TRUE)
|
|
||||||
endif()
|
|
||||||
@@ -108,7 +110,7 @@ if (LLDB_ENABLE_PYTHON)
|
|
||||||
if(LLDB_BUILD_FRAMEWORK)
|
if(LLDB_BUILD_FRAMEWORK)
|
||||||
set(lldb_python_target_dir "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework/Resources/Python/lldb")
|
set(LLDB_LUA_INSTALL_PATH ${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Resources/Python)
|
||||||
else()
|
else()
|
||||||
- set(lldb_python_target_dir "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_PYTHON_RELATIVE_PATH}/lldb")
|
- set(LLDB_LUA_INSTALL_PATH ${LLDB_LUA_RELATIVE_PATH})
|
||||||
+ set(lldb_python_target_dir "${CMAKE_INSTALL_LIBDIR}/../${LLDB_PYTHON_RELATIVE_PATH}/lldb")
|
+ set(LLDB_LUA_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}/../${LLDB_LUA_RELATIVE_PATH})
|
||||||
endif()
|
endif()
|
||||||
get_target_property(lldb_python_bindings_dir swig_wrapper_python BINARY_DIR)
|
install(DIRECTORY ${lldb_lua_target_dir}/
|
||||||
finish_swig_python("lldb-python" "${lldb_python_bindings_dir}" "${lldb_python_target_dir}")
|
DESTINATION ${LLDB_LUA_INSTALL_PATH}
|
||||||
@@ -118,7 +120,7 @@ if (LLDB_ENABLE_LUA)
|
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
|
||||||
|
index c631faf52ac3..1d92d069960b 100644
|
||||||
|
--- a/bindings/python/CMakeLists.txt
|
||||||
|
+++ b/bindings/python/CMakeLists.txt
|
||||||
|
@@ -160,7 +160,7 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
|
||||||
if(LLDB_BUILD_FRAMEWORK)
|
if(LLDB_BUILD_FRAMEWORK)
|
||||||
set(lldb_lua_target_dir "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework/Resources/Lua")
|
set(LLDB_PYTHON_INSTALL_PATH ${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Versions/${LLDB_FRAMEWORK_VERSION}/Resources/Python)
|
||||||
else()
|
else()
|
||||||
- set(lldb_lua_target_dir "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_LUA_RELATIVE_PATH}")
|
- set(LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_RELATIVE_PATH})
|
||||||
+ set(lldb_lua_target_dir "${CMAKE_INSTALL_LIBDIR}/../${LLDB_LUA_RELATIVE_PATH}")
|
+ set(LLDB_PYTHON_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}/../${LLDB_PYTHON_RELATIVE_PATH})
|
||||||
endif()
|
endif()
|
||||||
get_target_property(lldb_lua_bindings_dir swig_wrapper_lua BINARY_DIR)
|
if (NOT CMAKE_CFG_INTDIR STREQUAL ".")
|
||||||
finish_swig_lua("lldb-lua" "${lldb_lua_bindings_dir}" "${lldb_lua_target_dir}")
|
string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_INSTALL_PATH})
|
||||||
diff --git a/cmake/modules/AddLLDB.cmake b/cmake/modules/AddLLDB.cmake
|
diff --git a/cmake/modules/AddLLDB.cmake b/cmake/modules/AddLLDB.cmake
|
||||||
index 3291a7c808e1..b27d27ce6a87 100644
|
index 3291a7c808e1..b27d27ce6a87 100644
|
||||||
--- a/cmake/modules/AddLLDB.cmake
|
--- a/cmake/modules/AddLLDB.cmake
|
||||||
@ -52,16 +47,3 @@ index 7d48491ec89a..c04543585588 100644
|
|||||||
install(TARGETS lldbIntelFeatures
|
install(TARGETS lldbIntelFeatures
|
||||||
- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX})
|
- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX})
|
||||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX})
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX})
|
||||||
diff --git a/cmake/modules/LLDBStandalone.cmake b/cmake/modules/LLDBStandalone.cmake
|
|
||||||
index 7d48491ec89a..c04543585588 100644
|
|
||||||
--- a/cmake/modules/LLDBStandalone.cmake
|
|
||||||
+++ b/cmake/modules/LLDBStandalone.cmake
|
|
||||||
@@ -70,7 +70,7 @@ endif()
|
|
||||||
|
|
||||||
# They are used as destination of target generators.
|
|
||||||
set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin)
|
|
||||||
-set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
|
|
||||||
+set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX})
|
|
||||||
if(WIN32 OR CYGWIN)
|
|
||||||
# DLL platform -- put DLLs into bin.
|
|
||||||
set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
|
|
Loading…
Reference in New Issue
Block a user