[llvm] r344669 - Document the behavior of option passing when using -DCLANG_ENABLE_BOOTSTRAP=On

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 16 23:35:11 PDT 2018


Author: sylvestre
Date: Tue Oct 16 23:35:10 2018
New Revision: 344669

URL: http://llvm.org/viewvc/llvm-project?rev=344669&view=rev
Log:
Document the behavior of option passing when using -DCLANG_ENABLE_BOOTSTRAP=On
Also document -DCLANG_BOOTSTRAP_PASSTHROUGH

Reviewers: ecbeckmann

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D53018

Modified:
    llvm/trunk/docs/AdvancedBuilds.rst

Modified: llvm/trunk/docs/AdvancedBuilds.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/AdvancedBuilds.rst?rev=344669&r1=344668&r2=344669&view=diff
==============================================================================
--- llvm/trunk/docs/AdvancedBuilds.rst (original)
+++ llvm/trunk/docs/AdvancedBuilds.rst Tue Oct 16 23:35:10 2018
@@ -41,6 +41,16 @@ This command itself isn't terribly usefu
 configurations for each stage. The next series of examples utilize CMake cache
 scripts to provide more complex options.
 
+By default, only a few CMake options will be passed between stages.
+The list, called _BOOTSTRAP_DEFAULT_PASSTHROUGH, is defined in clang/CMakeLists.txt.
+To force the passing of the variables between stages, use the -DCLANG_BOOTSTRAP_PASSTHROUGH
+CMake option, each variable separated by a ";". As example:
+
+.. code-block:: console
+
+  $ cmake -G Ninja -DCLANG_ENABLE_BOOTSTRAP=On -DCLANG_BOOTSTRAP_PASSTHROUGH="CMAKE_INSTALL_PREFIX;CMAKE_VERBOSE_MAKEFILE" <path to source>
+  $ ninja stage2
+
 The clang build system refers to builds as stages. A stage1 build is a standard
 build using the compiler installed on the host, and a stage2 build is built
 using the stage1 compiler. This nomenclature holds up to more stages too. In




More information about the llvm-commits mailing list