diff options
author | Haibo Huang <hhb@google.com> | 2019-09-20 00:45:26 +0000 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2019-09-20 00:45:26 +0000 |
commit | 627868ab7c3d42313634b0305ce498645f6c851c (patch) | |
tree | 561531c76bf6a02976e48be0a58726b172da9dac | |
parent | 466fb68fce10d34963c2fd651de32bd3a4ddcd1f (diff) | |
download | bcm5719-llvm-627868ab7c3d42313634b0305ce498645f6c851c.tar.gz bcm5719-llvm-627868ab7c3d42313634b0305ce498645f6c851c.zip |
Revert "Fix swig python package path"
Summary: This reverts commit 5a115e81cdd40c758b10c382aeffc0c8de6930e2.
Reviewers: JDevlieghere, ZeGentzy
Subscribers: mgorny, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D67781
llvm-svn: 372364
-rw-r--r-- | lldb/scripts/CMakeLists.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt index 9de96ef5565..1a0ea96ff9f 100644 --- a/lldb/scripts/CMakeLists.txt +++ b/lldb/scripts/CMakeLists.txt @@ -42,15 +42,13 @@ add_custom_target(swig_wrapper ALL DEPENDS ) if(NOT LLDB_BUILD_FRAMEWORK) - # The path here should match the result of python function - # distutils.sysconfig.get_python_lib(). - if(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows") - set(swig_python_subdir Lib/site-packages) + if(CMAKE_SYSTEM_NAME MATCHES "Windows") + set(swig_python_subdir site-packages) else() - set(swig_python_subdir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) + set(swig_python_subdir python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) endif() - set(SWIG_PYTHON_DIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${swig_python_subdir}) + set(SWIG_PYTHON_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}/${swig_python_subdir}) set(SWIG_INSTALL_DIR lib${LLVM_LIBDIR_SUFFIX}) # Install the LLDB python module |