File tree Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -564,17 +564,21 @@ if(NOT DEFINED LLVM_DYLIB_COMPONENTS)
564
564
set (LLVM_DYLIB_COMPONENTS "all" CACHE STRING
565
565
"Semicolon-separated list of components to include in libLLVM, or \" all\" ." )
566
566
endif ()
567
- option ( LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF )
567
+
568
568
if (MSVC )
569
569
option (LLVM_BUILD_LLVM_C_DYLIB "Build LLVM-C.dll (Windows only)" ON )
570
+ # Set this variable to OFF here so it can't be set with a command-line
571
+ # argument.
572
+ set (LLVM_LINK_LLVM_DYLIB OFF )
570
573
else ()
574
+ option (LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF )
571
575
option (LLVM_BUILD_LLVM_C_DYLIB "Build libllvm-c re-export library (Darwin only)" OFF )
576
+ set (LLVM_BUILD_LLVM_DYLIB_default OFF )
577
+ if (LLVM_LINK_LLVM_DYLIB OR LLVM_BUILD_LLVM_C_DYLIB )
578
+ set (LLVM_BUILD_LLVM_DYLIB_default ON )
579
+ endif ()
580
+ option (LLVM_BUILD_LLVM_DYLIB "Build libllvm dynamic library" ${LLVM_BUILD_LLVM_DYLIB_default} )
572
581
endif ()
573
- set (LLVM_BUILD_LLVM_DYLIB_default OFF )
574
- if (LLVM_LINK_LLVM_DYLIB OR (LLVM_BUILD_LLVM_C_DYLIB AND NOT MSVC ))
575
- set (LLVM_BUILD_LLVM_DYLIB_default ON )
576
- endif ()
577
- option (LLVM_BUILD_LLVM_DYLIB "Build libllvm dynamic library" ${LLVM_BUILD_LLVM_DYLIB_default} )
578
582
579
583
option (LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF )
580
584
if (CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND (LLVM_ENABLE_ASSERTIONS OR CMAKE_CONFIGURATION_TYPES )))
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ LLVM. Even in this situation using *BUILD_SHARED_LIBS* is not supported. If you
96
96
want to distribute LLVM as a shared library for use in a tool, the recommended
97
97
method is using *LLVM_BUILD_LLVM_DYLIB *, and you can use *LLVM_DYLIB_COMPONENTS *
98
98
to configure which LLVM components are part of libLLVM.
99
+ Note: *LLVM_BUILD_LLVM_DYLIB * is not available on Windows.
99
100
100
101
Options for Optimizing LLVM
101
102
===========================
Original file line number Diff line number Diff line change @@ -570,11 +570,13 @@ LLVM-specific variables
570
570
is also ON.
571
571
The components in the library can be customised by setting LLVM_DYLIB_COMPONENTS
572
572
to a list of the desired components.
573
+ This option is not available on Windows.
573
574
574
575
**LLVM_LINK_LLVM_DYLIB **:BOOL
575
576
If enabled, tools will be linked with the libLLVM shared library. Defaults
576
577
to OFF. Setting LLVM_LINK_LLVM_DYLIB to ON also sets LLVM_BUILD_LLVM_DYLIB
577
578
to ON.
579
+ This option is not available on Windows.
578
580
579
581
**BUILD_SHARED_LIBS **:BOOL
580
582
Flag indicating if each LLVM component (e.g. Support) is built as a shared
Original file line number Diff line number Diff line change @@ -622,7 +622,8 @@ used by people developing LLVM.
622
622
| | default set of LLVM components that can be |
623
623
| | overridden with ``LLVM_DYLIB_COMPONENTS ``. The |
624
624
| | default contains most of LLVM and is defined in |
625
- | | ``tools/llvm-shlib/CMakelists.txt ``. |
625
+ | | ``tools/llvm-shlib/CMakelists.txt``. This option is|
626
+ | | not avialable on Windows. |
626
627
+-------------------------+----------------------------------------------------+
627
628
| LLVM_OPTIMIZED_TABLEGEN | Builds a release tablegen that gets used during |
628
629
| | the LLVM build. This can dramatically speed up |
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ Non-comprehensive list of changes in this release
58
58
* The BasicBlockPass, BBPassManager and all their uses were deleted in
59
59
`this revision <https://reviews.llvm.org/rG9f0ff0b2634bab6a5be8dace005c9eb24d386dd1 >`_.
60
60
61
+ * The LLVM_BUILD_LLVM_DYLIB and LLVM_LINK_LLVM_DYLIB CMake options are no longer
62
+ available on Windows.
63
+
61
64
.. NOTE
62
65
If you would like to document a larger change, then you can add a
63
66
subsection about it right here. You can copy the following boilerplate
You can’t perform that action at this time.
0 commit comments