Index: clang/cmake/caches/3-stage-base.cmake =================================================================== --- clang/cmake/caches/3-stage-base.cmake +++ clang/cmake/caches/3-stage-base.cmake @@ -3,6 +3,15 @@ set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "") set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "") +# Use LLD do have less requirements on system linker, unless we're on an apple +# platform where the system compiler is to be prefered. +if(APPLE) + set(BOOTSTRAP_LLVM_ENABLE_LLD OFF CACHE BOOL "") +else() + set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "") +endif() + + set(CLANG_BOOTSTRAP_TARGETS clang check-all Index: llvm/docs/AdvancedBuilds.rst =================================================================== --- llvm/docs/AdvancedBuilds.rst +++ llvm/docs/AdvancedBuilds.rst @@ -186,8 +186,6 @@ .. code-block:: console $ cmake -G Ninja -C /cmake/caches/3-stage.cmake - $ ninja stage3 + $ cmake --build . --target stage3 --parallel -After the build you can compare the stage2 & stage3 compilers. We have a bot -setup `here `_ that runs -this build and compare configuration. +After the build you can compare the stage2 & stage3 compilers.