Commit 8eda10ca authored by Ebrahim Byagowi's avatar Ebrahim Byagowi Committed by Evandro Menezes
Browse files

[doc] Use cmake's -S option to simplify the build instructions

Now that llvm's minimum version is 3.13.4 anyway and `-S` is
introduced in the same version[1], let's use this little
time saving option to simplify the build instructions.

[1]: https://cgold.readthedocs.io/en/latest/glossary/-S.html



Authored-By: default avatarEbrahim Byagowi <ebrahim@gnu.org>

Differential-Revision: https://reviews.llvm.org/D95049
parent b86dbe0c
......@@ -50,11 +50,7 @@ This is an example work-flow and configuration to get and build the LLVM source:
* ``cd llvm-project``
* ``mkdir build``
* ``cd build``
* ``cmake -G <generator> [options] ../llvm``
* ``cmake -S llvm -B build -G <generator> [options]``
Some common build system generators are:
......@@ -85,7 +81,7 @@ This is an example work-flow and configuration to get and build the LLVM source:
* ``-DLLVM_ENABLE_ASSERTIONS=On`` --- Compile with assertion checks enabled
(default is Yes for Debug builds, No for all other build types).
* ``cmake --build . [-- [options] <target>]`` or your build system specified above
* ``cmake --build build [-- [options] <target>]`` or your build system specified above
directly.
* The default target (i.e. ``ninja`` or ``make``) will build all of LLVM.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment