[llvm-bugs] [Bug 39750] lldb built with cmake on macOS fails to debug applications
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 11 05:22:43 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39750
Stefan Gränitz <stefan.graenitz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Stefan Gränitz <stefan.graenitz at gmail.com> ---
As soon as my CMake changes around https://reviews.llvm.org/D55328 are
committed, the following should work for LLDB Standalone builds:
Directory structure:
$ROOT/lldb (master with pending CMake changes)
$ROOT/llvm/projects/compiler-rt (master)
$ROOT/llvm/projects/libcxx (master)
$ROOT/llvm/projects/libcxxabi (master)
$ROOT/llvm/tools/clang (master)
Build LLVM&co (e.g. with ninja):
$ mkdir -p $ROOT/llvm-build/release
$ cd $ROOT/llvm-build/release
$ xcrun cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host
../../llvm
$ ninja
Build standalone LLDB (e.g. with xcodebuild):
$ mkdir $ROOT/xcode-release
$ cd $ROOT/xcode-release
$ xcrun cmake -GXcode -DLLVM_TARGETS_TO_BUILD=host
-DLLVM_CONFIG=$ROOT/llvm-build/release/bin/llvm-config ../lldb
$ xcodebuild -configuration Release
Run test suite:
$ cd $/lldb/test
$ python2.7 dotest.py --executable $ROOT/xcode-release/Release/bin/lldb
--filecheck $ROOT/llvm-build/release/bin/FileCheck -C
$ROOT/llvm-build/release/bin/clang
You should be able to build other configurations and use your favorite
generator for the individual parts. As noted earlier, there are no bots that
test this setup at the moment, so feel free to fix things if they break.
Best
Stefan
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181211/2e1667d2/attachment.html>
More information about the llvm-bugs
mailing list