[Lldb-commits] [lldb] [lldb][HostInfoMacOSX] Search CommandLineTools directory when looking up SDK paths (PR #128712)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 28 07:25:23 PST 2025


https://github.com/JDevlieghere commented:

I definitely like this approach much better. Two suggestions:

 - Should this use a FileSpec instead of a `std::string` for the sysroot? 
 - I like the simplicity of a `std::pair` but on the other hand it's hard to tell what the string represents. I think it would help to either store the `sysroot` in the `XcodeSDK` (potentially as an `std::optional`) or having this return a `struct` with named fiels (e.g. `xcode_sdk`, `sysroot`). Putting the sysroot in the XcodeSDK means you don't have to update the Doxygen comments which are now all outdated. 

https://github.com/llvm/llvm-project/pull/128712


More information about the lldb-commits mailing list