Skip to content

Commit b4ffc40

Browse files
author
Serge Guelton
committed
Update documentation and implementation of stage3 build
Have the build work out of the box by forcing an LLD build. That way, we don't require an external LTO-aware linker, as we build one. Also remove reference to the seemingly dead builder. Differential Revision: https://reviews.llvm.org/D88990
1 parent a5ef2e0 commit b4ffc40

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

clang/cmake/caches/3-stage-base.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
33
set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "")
44
set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")
55

6+
# Use LLD do have less requirements on system linker, unless we're on an apple
7+
# platform where the system compiler is to be prefered.
8+
if(APPLE)
9+
set(BOOTSTRAP_LLVM_ENABLE_LLD OFF CACHE BOOL "")
10+
else()
11+
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
12+
endif()
13+
14+
615
set(CLANG_BOOTSTRAP_TARGETS
716
clang
817
check-all

llvm/docs/AdvancedBuilds.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ following commands:
186186
.. code-block:: console
187187
188188
$ cmake -G Ninja -C <path_to_clang>/cmake/caches/3-stage.cmake <source dir>
189-
$ ninja stage3
189+
$ cmake --build . --target stage3 --parallel
190190
191-
After the build you can compare the stage2 & stage3 compilers. We have a bot
192-
setup `here <http://lab.llvm.org:8011/builders/clang-3stage-ubuntu>`_ that runs
193-
this build and compare configuration.
191+
After the build you can compare the stage2 & stage3 compilers.

0 commit comments

Comments
 (0)