[llvm] r349299 - Document the usage of BOOTSTRAP_XXX with stage2 builds

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 16 06:04:10 PST 2018


Author: sylvestre
Date: Sun Dec 16 06:04:10 2018
New Revision: 349299

URL: http://llvm.org/viewvc/llvm-project?rev=349299&view=rev
Log:
Document the usage of BOOTSTRAP_XXX with stage2 builds

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=349299&r1=349298&r2=349299&view=diff
==============================================================================
--- llvm/trunk/docs/AdvancedBuilds.rst (original)
+++ llvm/trunk/docs/AdvancedBuilds.rst Sun Dec 16 06:04:10 2018
@@ -51,6 +51,15 @@ CMake option, each variable separated by
   $ cmake -G Ninja -DCLANG_ENABLE_BOOTSTRAP=On -DCLANG_BOOTSTRAP_PASSTHROUGH="CMAKE_INSTALL_PREFIX;CMAKE_VERBOSE_MAKEFILE" <path to source>
   $ ninja stage2
 
+CMake options starting by BOOTSTRAP_ will be passed only to the stage2 build.
+This gives the opportunity to use Clang specific build flags.
+For example, the following CMake call will enabled '-fno-addrsig' only during
+the stage2 build for C and C++.
+
+.. code-block:: console
+
+  $ cmake [..]  -DBOOTSTRAP_CMAKE_CXX_FLAGS='-fno-addrsig' -DBOOTSTRAP_CMAKE_C_FLAGS='-fno-addrsig' [..]
+
 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