[lldb-dev] lldb tests w/CMake+OSX
Zachary Turner
zturner at google.com
Fri Jan 16 18:40:12 PST 2015
Btw, i think it's important to keep the CMake build working for Mac. The
reason being that since it's what the rest of LLVM uses, having a familiar
path to getting started hacking on it really encourages people to
contribute (or at the very least, doesn't DIScourage people from
contributing). A MacOSX CMake builder would be great, but it would take
some serious motivation from someone to make that happen
On Fri, Jan 16, 2015 at 6:33 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?
>
> > > 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++"
> -DCMAKE_BUILD_TYPE=Debug
> ninja
> 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
> /Contents/SharedFrameworks/LLDB.framework/Resources/debugserver)
> cd ~/llvm/tools/lldb/test
> ./dotest.py --executable $BUILDDIR/bin/lldb
>
> -Dawn
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150117/88290dc6/attachment.html>
More information about the lldb-dev
mailing list