Index: www/build.html =================================================================== --- www/build.html +++ www/build.html @@ -143,7 +143,7 @@

Building LLDB on Mac OS X

-

Building on Mac OS X is as easy as downloading the code and building the Xcode project or workspace:

+

There are two ways to build LLDB on Mac OS X: Using Xcode and using CMake

Preliminaries

@@ -151,13 +151,34 @@
  • XCode 4.3 or newer requires the "Command Line Tools" component (XCode->Preferences->Downloads->Components).
  • Mac OS X Lion or newer requires installing Swig.
  • -

    Building LLDB

    +

    Building LLDB with Xcode

    +

    Building on Mac OS X with Xcode is as easy as downloading the code and building the Xcode project or workspace:

    +

    Building LLDB with CMake

    +

    First download the LLVM, Clang, and LLDB sources. Refer to this page for precise instructions on this step.

    +

    Refer to the code signing instructions in lldb/docs/code-signing.txt for info on codesigning debugserver during the build.

    +

    Using CMake is documented on the Building LLVM with CMake page. + Ninja is the recommended generator to use when building LLDB with CMake.

    + + > cmake $PATH_TO_LLVM -G Ninja +
    > ninja lldb +
    +

    + As noted in the "Building LLVM with CMake" page mentioned above, you can pass + variables to cmake to change build behavior. If LLDB is built as a part of LLVM, + then you can pass LLVM-specific CMake variables to cmake when building LLDB. +

    +

    Here are some commonly used LLDB-specific CMake variables:

    +