[lldb-dev] Unable to build lldb on Mac OS

Dave Lee via lldb-dev lldb-dev at lists.llvm.org
Mon Oct 26 09:42:52 PDT 2020


On Mon, Oct 26, 2020 at 6:51 AM Tom Stellard via lldb-dev <
lldb-dev at lists.llvm.org> wrote:

> Is there anyone with access to a Mac OS system that has time to take a
> look at this bug: https://bugs.llvm.org/show_bug.cgi?id=46190
>

When I've had compilation issues caused by CommandLineTools, the cause has
been Homebrew's install of pkg-config. Since it's not always possible to
uninstall pkg-config, the solution I use is to add
`-DPKG_CONFIG_EXECUTABLE=/usr/bin/false` to CMake. On macOS, the Xcode SDK
includes the libraries lldb needs, and CMake finds them without needing
pkg-config. But when pkg-config is installed, the paths it provides from
CommandLineTools are used instead. Using `false` is to simulate failure, at
which point cmake continues on with its search and finds them in the SDK.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20201026/792512b6/attachment.html>


More information about the lldb-dev mailing list