[Lldb-commits] [PATCH] D64154: [Docs] Unify build instructions

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 3 13:26:22 PDT 2019

xiaobai added a comment.

Thanks for doing this! :D

Comment at: lldb/docs/resources/build.rst:145
-  cmake -G Ninja -DLLDB_TEST_DEBUG_TEST_CRASHES=1 -DPYTHON_HOME=C:\Python35 -DLLDB_TEST_USE_CUSTOM_C_COMPILER=ON -DLLDB_TEST_C_COMPILER=d:\src\llvmbuild\ninja_release\bin\clang.exe ..\..\llvm
-**Working with both Ninja and MSVC**
-Compiling with ninja is both faster and simpler than compiling with MSVC, but
-chances are you still want to debug LLDB with MSVC (at least until we can debug
-LLDB on Windows with LLDB!). One solution to this is to run cmake twice and
-generate the output into two different folders. One for compiling (the ninja
-folder), and one for editing / browsing / debugging (the MSVC folder).
-To do this, simply run ``cmake -G Ninja <arguments>`` from one folder, and
-``cmake -G "Visual Studio 14 2015" <arguments>`` in another folder. Then you
-can open the .sln file in Visual Studio, set lldb as the startup project, and
-use F5 to run it. You need only edit the project settings to set the executable
-and the working directory to point to binaries inside of the ninja tree.
-Building LLDB on macOS
-There are two ways to build LLDB on macOS: Using Xcode and using CMake
-In addition to any dependencies required by LLVM and Clang, LLDB needs a few
-development packages that may also need to be installed depending on your
-system. The current list of dependencies are:
-* Xcode 4.3 or newer requires the "Command Line Tools" component (XCode->Preferences->Downloads->Components)
-* `Swig <http://swig.org/>`_
-**Building LLDB with Xcode**
+  > cmake -G Ninja \
The windows invocation should probably be more suited towards what one might see building on windows. See https://github.com/apple/swift/blob/master/docs/WindowsBuild.md#9-build-lldb as an example of what it might look like.




More information about the lldb-commits mailing list