diff options
author | Anders Waldenborg <anders@0x63.nu> | 2012-11-20 22:27:55 +0000 |
---|---|---|
committer | Anders Waldenborg <anders@0x63.nu> | 2012-11-20 22:27:55 +0000 |
commit | 81a8c5cc34b40d1b3afa0aa8c6abcc73dc53bd7e (patch) | |
tree | 4d46e328cdc5e086b13eb339c3ab59ab45ac0be7 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | c6f2465b5d45c8aefb94e73bca5f37bb164b0557 (diff) | |
download | bcm5719-llvm-81a8c5cc34b40d1b3afa0aa8c6abcc73dc53bd7e.tar.gz bcm5719-llvm-81a8c5cc34b40d1b3afa0aa8c6abcc73dc53bd7e.zip |
[python] fix get_library()
Before this fix, the LLVM Python bindings on SVN trunk always fail with:
Exception: LLVM shared library not found!
since it's still looking for a library named "LLVM-3.1svn".
Besides updating the LLVM version in the library name,
this patch also changes llvm.get_library() to make it possible to run
the unit tests without installing the LLVM shared library into a
default linker search path.
e.g. after this patch, running the llvm/python unit tests with:
LD_LIBRARY_PATH=../build/Debug+Asserts/lib nosetests -v bindings/python/llvm/tests/
would work on Linux.
Patch from Scott Tsai (with some minor modifications)
Patch also acked by Gregory Szorc
llvm-svn: 168390
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions