Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions llvm/docs/CMake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,10 @@ its enabled sub-projects. Nearly all of these variable names begin with
``LLVM_ENABLE_SPHINX`` and ``LLVM_ENABLE_DOXYGEN``.

**LLVM_BUILD_EXAMPLES**:BOOL
Build LLVM examples. Defaults to OFF. Targets for building each example are
generated in any case. See documentation for *LLVM_BUILD_TOOLS* above for more
details.
Include LLVM examples in the 'all' build target and install them as part of
the ``install`` target. Defaults to OFF. Targets for building examples are
still generated, this is controlled by *LLVM_INCLUDE_EXAMPLES*. Note that some
examples might still be built as dependencies for tests.

**LLVM_BUILD_INSTRUMENTED_COVERAGE**:BOOL
If enabled, `source-based code coverage
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ llvm_canonicalize_cmake_booleans(
LLVM_LINK_LLVM_DYLIB
LLVM_TOOL_LTO_BUILD
LLVM_USE_INTEL_JITEVENTS
LLVM_BUILD_EXAMPLES
LLVM_INCLUDE_EXAMPLES
LLVM_ENABLE_PLUGINS
LLVM_BYE_LINK_INTO_TOOLS
LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS
Expand Down Expand Up @@ -186,7 +186,7 @@ if (TARGET llvm-mt)
list(APPEND LLVM_TEST_DEPENDS llvm-mt)
endif ()

if(LLVM_BUILD_EXAMPLES)
if(LLVM_INCLUDE_EXAMPLES)
list(APPEND LLVM_TEST_DEPENDS
Kaleidoscope-Ch3
Kaleidoscope-Ch4
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Examples/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if not config.build_examples or sys.platform in ["win32"]:
if not config.include_examples or sys.platform in ["win32"]:
config.unsupported = True

# Test discovery should ignore subdirectories that contain test inputs.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def enable_ptxas(ptxas_executable):
if config.has_plugins:
config.available_features.add("plugins")

if config.build_examples:
if config.include_examples:
config.available_features.add("examples")

if config.linked_bye_extension:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/lit.site.cfg.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ config.have_curl = @LLVM_ENABLE_CURL@
config.have_httplib = @LLVM_ENABLE_HTTPLIB@
config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
config.enable_ffi = @LLVM_ENABLE_FFI@
config.build_examples = @LLVM_BUILD_EXAMPLES@
config.include_examples = @LLVM_INCLUDE_EXAMPLES@
config.enable_backtrace = @ENABLE_BACKTRACES@
config.enable_threads = @LLVM_ENABLE_THREADS@
config.build_shared_libs = @BUILD_SHARED_LIBS@
Expand Down