[PATCH] D148451: [Docs] Fix minor issues in AdvancedBuilds documentation
Aiden Grossman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 12:49:23 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1245a1ed07ba: [Docs] Fix minor issues in AdvancedBuilds documentation (authored by aidengrossman).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148451/new/
https://reviews.llvm.org/D148451
Files:
llvm/docs/AdvancedBuilds.rst
Index: llvm/docs/AdvancedBuilds.rst
===================================================================
--- llvm/docs/AdvancedBuilds.rst
+++ llvm/docs/AdvancedBuilds.rst
@@ -41,7 +41,10 @@
.. code-block:: console
- $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCLANG_ENABLE_BOOTSTRAP=On <path to source>
+ $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCLANG_ENABLE_BOOTSTRAP=On \
+ -DLLVM_ENABLE_PROJECTS="clang" \
+ <path to source>/llvm
$ ninja stage2
This command itself isn't terribly useful because it assumes default
@@ -55,7 +58,11 @@
.. code-block:: console
- $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCLANG_ENABLE_BOOTSTRAP=On -DCLANG_BOOTSTRAP_PASSTHROUGH="CMAKE_INSTALL_PREFIX;CMAKE_VERBOSE_MAKEFILE" <path to source>
+ $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCLANG_ENABLE_BOOTSTRAP=On \
+ -DCLANG_BOOTSTRAP_PASSTHROUGH="CMAKE_INSTALL_PREFIX;CMAKE_VERBOSE_MAKEFILE" \
+ -DLLVM_ENABLE_PROJECTS="clang" \
+ <path to source>/llvm
$ ninja stage2
CMake options starting by ``BOOTSTRAP_`` will be passed only to the stage2 build.
@@ -88,7 +95,7 @@
.. code-block:: console
- $ cmake -G Ninja -C <path to source>/clang/cmake/caches/Apple-stage1.cmake <path to source>
+ $ cmake -G Ninja -C <path to source>/clang/cmake/caches/Apple-stage1.cmake <path to source>/llvm
$ ninja stage2-distribution
This CMake invocation configures the stage1 host compiler, and sets
@@ -268,7 +275,7 @@
.. code-block:: console
- $ cmake -G Ninja -C <path to source>/clang/cmake/caches/3-stage.cmake <path to source>
+ $ cmake -G Ninja -C <path to source>/clang/cmake/caches/3-stage.cmake <path to source>/llvm
$ cmake --build . --target stage3 --parallel
After the build you can compare the stage2 & stage3 compilers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148451.516508.patch
Type: text/x-patch
Size: 1806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230424/8ed55087/attachment.bin>
More information about the llvm-commits
mailing list