Skip to content

Commit abd3a69

Browse files
committed
Update documentation
1 parent 24a8b62 commit abd3a69

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

llvm/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,9 @@ option (LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO
874874
option(LLVM_VERSION_PRINTER_SHOW_BUILD_CONFIG
875875
"Show the optional build config flags when tools are invoked with --version." ON)
876876

877-
set(LLVM_CRASH_DIAGNOSTICS "" CACHE STRING "Control when to generate reproducer. Can be OFF, COMPILER, ALL")
878-
set(LLVM_CRASH_DIAGNOSTICS_DIR "" CACHE STRING "Path to use for crash reproducers")
879-
set(LLVM_GEN_REPRODUCER OFF CACHE BOOL "Generate a reproducer. Can be OFF, CRASH, ERROR, ALWAYS")
877+
set(LLVM_CRASH_DIAGNOSTICS "" CACHE STRING "Controls whether to generate crash reproducers. Can be OFF, COMPILER, ALL")
878+
set(LLVM_CRASH_DIAGNOSTICS_DIR "" CACHE PATH "Path to use for crash reproducers")
879+
set(LLVM_GEN_REPRODUCER OFF CACHE STRING "Controls when to generate compiler reproducers. Can be OFF, CRASH, ERROR, ALWAYS")
880880

881881
# You can configure which libraries from LLVM you want to include in the
882882
# shared library by setting LLVM_DYLIB_COMPONENTS to a semi-colon delimited

llvm/docs/CMake.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,17 @@ enabled sub-projects. Nearly all of these variable names begin with
900900
the linker needs to resolve. It is recommended for platforms using the ELF object
901901
format, like Linux systems when linker memory usage is too high.
902902

903+
**LLVM_CRASH_DIAGNOSTICS**:STRING
904+
Controls whether to generate crash reproducers. Possible values are ``OFF``,
905+
``COMPILER`` for compiler, and ``ALL`` for compiler and linker reproducers.
906+
907+
**LLVM_CRASH_DIAGNOSTICS_DIR**:PATH
908+
Path to use for crash reproducers (controlled by ``LLVM_CRASH_DIAGNOSTICS``).
909+
910+
**LLVM_GEN_REPRODUCER**:STRING
911+
Controls when to generate compiler reproducers. Can be ``OFF``, ``CRASH`` for
912+
crashes, ``ERROR`` for compiler errors, and ``ALWAYS`` for every invocation.
913+
903914
**SPHINX_EXECUTABLE**:STRING
904915
The path to the ``sphinx-build`` executable detected by CMake.
905916
For installation instructions, see

0 commit comments

Comments
 (0)