denzp / rustc-llvm-proxy

Proxy LLVM calls into Rust own shared library in runtime
MIT License
32 stars 13 forks source link

Fixed LLVM path search #13

Open westernmagic opened 4 years ago

westernmagic commented 4 years ago

While searching for LLVM, we might encounter other LLVM libraries (eg. if LLVM was compiled to a static library, libLLVMAnalysis.a, etc.), which will then be wrongly returned.

This patch makes sure we only take the top-level library.