Skip to content

Commit 18e4604

Browse files
committed
Add shared libs suggestion
1 parent 4bdc8bc commit 18e4604

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

llvm/docs/CMake.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ These variables provide fine control over the build of LLVM and
309309
enabled sub-projects. Nearly all of these variable names begin with
310310
``LLVM_``.
311311

312+
.. _LLVM-related variables BUILD_SHARED_LIBS:
313+
312314
**BUILD_SHARED_LIBS**:BOOL
313315
Flag indicating if each LLVM component (e.g. Support) is built as a shared
314316
library (ON) or as a static library (OFF). Its default value is OFF. On

llvm/docs/GettingStarted.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,14 @@ following options with cmake:
11601160
information is in a separate DWARF object file (with the extension ``.dwo``).
11611161
This only applies to host platforms using ELF, such as Linux.
11621162

1163+
* ``-DBUILD_SHARED_LIBS``
1164+
1165+
Setting this to ``ON`` will build shared libraries instead of static
1166+
libraries. This will ease memory pressure on the linker. However, this should
1167+
only be used when developing llvm. See
1168+
:ref:`BUILD_SHARED_LIBS <LLVM-related variables BUILD_SHARED_LIBS>`
1169+
for more information.
1170+
11631171
.. _links:
11641172

11651173
Links

0 commit comments

Comments
 (0)