[Lldb-commits] [lldb] [LLDB][OSX] Add a fallback support exe directory (PR #103458)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 13 14:58:04 PDT 2024
================
@@ -144,16 +150,22 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
#endif
} else {
// Find the bin path relative to the lib path where the cmake-based
- // OS X .dylib lives. This is not going to work if the bin and lib
- // dir are not both in the same dir.
+ // OS X .dylib lives. We try looking first at a possible sibling `bin`
+ // directory, and then at the `lib` directory itself.
----------------
bulbazord wrote:
If you're doing this to support non-CMake build systems (e.g. Bazel), could you write some details explaining why we might want to look in `lib/`? I was thinking something to the effect of "some build systems may put executables in the same directory as the final liblldb so we look there too".
https://github.com/llvm/llvm-project/pull/103458
More information about the lldb-commits
mailing list