[Lldb-commits] [PATCH] D13625: Support RHEL 7 and similar systems that use architecture-specific Python lib dirs.
Todd Fiala via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 10 19:52:27 PDT 2015
tfiala created this revision.
tfiala added reviewers: labath, dawn.
tfiala added a subscriber: lldb-commits.
This change fixes 'lldb -P' (retrieve lldb-module python path) to work correctly on cmake-based builds on POSIX systems.
Previously, this would assume the python module installation path was in the lldb lib directory. This is not accurate for RHEL, which uses an architecture-specific directory name (i.e. lib64 for x86_64 versions).
Now, with this change, the python identified during build is called with a script at configure time and builds with a #define for the relative directory path used for this system's particular python style. On RHEL, this turns into lib64/python{maj}.{min}/..., while it will be lib/python{maj}.{min}/... on other systems. This removes the lldb code from guessing it in this case.
The old behavior is preserved in the event that the configure-time python script fails to determine the relative python module lib dir.
This fixes:
https://llvm.org/bugs/show_bug.cgi?id=25134
http://reviews.llvm.org/D13625
Files:
scripts/get_relative_lib_dir.py
source/Host/CMakeLists.txt
source/Host/posix/HostInfoPosix.cpp
www/build.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13625.37040.patch
Type: text/x-patch
Size: 4935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151011/4bbb87ad/attachment.bin>
More information about the lldb-commits
mailing list