mirror of
https://github.com/intel/llvm.git
synced 2026-01-12 18:27:07 +08:00
This makes use of `version -v` added by #170772, along with fallback methods for LLDB prior to 22. 1. version --verbose (won't work prior to 22) 2. Scripting to call GetBuildConfiguration (won't work if you don't have a scripting language 3. readelf/other platform's equivalent utility readelf is recommended for Linux due to security concerns with ldd. https://man7.org/linux/man-pages/man1/ldd.1.html "some versions of ldd may attempt to obtain the dependency information by attempting to directly execute the program" The drawback to that is it doesn't show dependencies of dependencies, so I've noted that. People can use ldd if they trust the binary, but I've made it clear how to avoid that and why you should avoid it.