[lldb-dev] lldb tests w/CMake+OSX
gclayton at apple.com
Mon Jan 19 16:31:11 PST 2015
> On Jan 14, 2015, at 12:22 PM, Dawn Perchik <dperchik at embarcadero.com> wrote:
> Greg Clayton <gclayton <at> apple.com> writes:
>> The correct way to test is to use the Xcode build.
> Last I checked, the XCode build didn't build lldb-mi so that was not
> an option. Does it now?
It does now:
Date: Mon Jan 19 18:04:26 2015
New Revision: 226530
Added an Xcode target so we build the "lldb-mi" executable as part of the "desktop" and "desktop no xpc" targets.
Include paths were switched to be user include paths, if this breaks the linux build we will need to fix the Makefiles/cmake stuff.
>>> On Jan 14, 2015, at 11:09 AM, Vince Harron <vharron <at> google.com> wrote:
>>> Does anyone know if it is possible to successfully run the lldb unit
> tests on OSX from a CMake build?
> We run the tests but we don't pass a framework. I've asked if that was an
> issue in a previous post (from dawn at burble.org). No one seemed to know. I
> remember running dtrace on a debug session and things looked OK. We build
> and run the tests as follows (lines wrapped due to gmane's 80 char limit):
> Checkout with lldb and clang under llvm/tools.
> cd llvm
> mkdir build_ninja && cd build_ninja
> cmake -G Ninja .. "-DLLVM_TARGETS_TO_BUILD=ARM;X86;AArch64"
> -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++"
> export BUILDDIR=`pwd`
> export LLDB_DEBUGSERVER_PATH=$BUILDDIR/bin/debugserver
> (if this debug server gives you problems use Apple’s instead :
> export LLDB_DEBUGSERVER_PATH=/Applications/Xcode.app
> cd ~/llvm/tools/lldb/test
> ./dotest.py --executable $BUILDDIR/bin/lldb
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
More information about the lldb-dev