From 6fa8d110342dccd99fdc926c057e33adc4cc2ffb Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Sat, 15 Jul 2023 11:36:13 -0700 Subject: [PATCH] [docs] GettingStarted.rst cmake should reference build The next sections in GettingStarted assume you are still in the root directory llvm-project when using ninja. Make the `cmake --build` command match it as well. Note: I am a new cmake user and this confused me. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D153727 --- llvm/docs/GettingStarted.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst index a3e0903..96135b7 100644 --- a/llvm/docs/GettingStarted.rst +++ b/llvm/docs/GettingStarted.rst @@ -89,11 +89,11 @@ Getting the Source Code and Building LLVM you run into memory issues building LLVM, try setting this to limit the maximum number of compile/link jobs running at the same time. - * ``cmake --build . [--target ]`` or the build system specified + * ``cmake --build build [--target ]`` or the build system specified above directly. - * The default target (i.e. ``cmake --build .`` or ``make``) will build all of - LLVM. + * The default target (i.e. ``cmake --build build`` or ``make -C build``) + will build all of LLVM. * The ``check-all`` target (i.e. ``ninja check-all``) will run the regression tests to ensure everything is in working order. -- 2.7.4