[llvm] ab8d7ea - [docs] Mention LLVM_USE_LINKER/LLVM_PARALLEL_{COMPILE,LINK}_JOBS in GettingStarted

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 13:04:33 PST 2023


Author: Arthur Eubanks
Date: 2023-03-09T13:04:15-08:00
New Revision: ab8d7ea4862805077e1606f587c82182b6060068

URL: https://github.com/llvm/llvm-project/commit/ab8d7ea4862805077e1606f587c82182b6060068
DIFF: https://github.com/llvm/llvm-project/commit/ab8d7ea4862805077e1606f587c82182b6060068.diff

LOG: [docs] Mention LLVM_USE_LINKER/LLVM_PARALLEL_{COMPILE,LINK}_JOBS in GettingStarted

As requested in D145413.

Reviewed By: aaron.ballman

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

Added: 
    

Modified: 
    llvm/docs/GettingStarted.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst
index 37c5fe6977a01..9247b3908aeb8 100644
--- a/llvm/docs/GettingStarted.rst
+++ b/llvm/docs/GettingStarted.rst
@@ -79,6 +79,16 @@ Getting the Source Code and Building LLVM
      * ``-DLLVM_ENABLE_ASSERTIONS=ON`` --- Compile with assertion checks enabled
        (default is ON for Debug builds, OFF for all other build types).
 
+     * ``-DLLVM_USE_LINKER=lld`` --- Link with the `lld linker`_, assuming it
+       is installed on your system. This can dramatically speed up link times
+       if the default linker is slow.
+
+     * ``-DLLVM_PARALLEL_{COMPILE,LINK}_JOBS=N`` --- Limit the number of
+       compile/link jobs running in parallel at the same time. This is
+       especially important for linking since linking can use lots of memory. If
+       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 <target>]`` or the build system specified
      above directly.
 


        


More information about the llvm-commits mailing list