From 8eda10ca09c25f631d41f040137c89145bdcbc1a Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 16 Feb 2021 14:36:56 -0600 Subject: [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: Ebrahim Byagowi Differential-Revision: https://reviews.llvm.org/D95049 --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6e02ee378eb3..e39bc2c000b9 100644 --- a/README.md +++ b/README.md @@ -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 [options] ../llvm`` + * ``cmake -S llvm -B build -G [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] ]`` or your build system specified above + * ``cmake --build build [-- [options] ]`` or your build system specified above directly. * The default target (i.e. ``ninja`` or ``make``) will build all of LLVM. -- cgit v1.2.1