summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-10-23 23:35:43 +0000
committerReid Kleckner <rnk@google.com>2018-10-23 23:35:43 +0000
commit1500effacda10eccbab15ea83779fd952564b411 (patch)
tree9d702f5ba0f951f41fc780e99672e66a0a30fc9d /lldb/packages/Python/lldbsuite/test/functionalities
parent80a0c97e07bd2057e163ec3e53702e458803a03b (diff)
downloadbcm5719-llvm-1500effacda10eccbab15ea83779fd952564b411.tar.gz
bcm5719-llvm-1500effacda10eccbab15ea83779fd952564b411.zip
[hurd] Make getMainExecutable get the real binary path
On GNU/Hurd, llvm-config is returning bogus value, such as: $ llvm-config-6.0 --includedir /usr/include while it should be: $ llvm-config-6.0 --includedir /usr/lib/llvm-6.0/include This is because getMainExecutable does not get the actual installation path. On GNU/Hurd, /proc/self/exe is indeed a symlink to the path that was used to start the program, and not the eventual binary file. Llvm's getMainExecutable thus needs to run realpath over it to get the actual place where llvm was installed (/usr/lib/llvm-6.0/bin/llvm-config), and not /usr/bin/llvm-config-6.0. This will not change the result on Linux, where /proc/self/exe already points to the eventual file. Patch by Samuel Thibault! While making changes here, I reformatted this block a bit to reduce indentation and match 2 space indent style. Differential Revision: https://reviews.llvm.org/D53557 llvm-svn: 345104
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud