File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -366,9 +366,10 @@ its enabled sub-projects. Nearly all of these variable names begin with
366366 ``LLVM_ENABLE_SPHINX `` and ``LLVM_ENABLE_DOXYGEN ``.
367367
368368**LLVM_BUILD_EXAMPLES **:BOOL
369- Build LLVM examples. Defaults to OFF. Targets for building each example are
370- generated in any case. See documentation for *LLVM_BUILD_TOOLS * above for more
371- details.
369+ Include LLVM examples in the 'all' build target and install them as part of
370+ the ``install `` target. Defaults to OFF. Targets for building examples are
371+ still generated, this is controlled by *LLVM_INCLUDE_EXAMPLES *. Note that some
372+ examples might still be built as dependencies for tests.
372373
373374**LLVM_BUILD_INSTRUMENTED_COVERAGE **:BOOL
374375 If enabled, `source-based code coverage
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ llvm_canonicalize_cmake_booleans(
1313 LLVM_LINK_LLVM_DYLIB
1414 LLVM_TOOL_LTO_BUILD
1515 LLVM_USE_INTEL_JITEVENTS
16- LLVM_BUILD_EXAMPLES
16+ LLVM_INCLUDE_EXAMPLES
1717 LLVM_ENABLE_PLUGINS
1818 LLVM_BYE_LINK_INTO_TOOLS
1919 LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS
@@ -186,7 +186,7 @@ if (TARGET llvm-mt)
186186 list (APPEND LLVM_TEST_DEPENDS llvm-mt)
187187endif ()
188188
189- if (LLVM_BUILD_EXAMPLES )
189+ if (LLVM_INCLUDE_EXAMPLES )
190190 list (APPEND LLVM_TEST_DEPENDS
191191 Kaleidoscope-Ch3
192192 Kaleidoscope-Ch4
Original file line number Diff line number Diff line change 1- if not config.build_examples or sys.platform in [" win32" ]:
1+ if not config.include_examples or sys.platform in [" win32" ]:
22 config.unsupported = True
33
44# Test discovery should ignore subdirectories that contain test inputs.
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ def enable_ptxas(ptxas_executable):
511511if config .has_plugins :
512512 config .available_features .add ("plugins" )
513513
514- if config .build_examples :
514+ if config .include_examples :
515515 config .available_features .add ("examples" )
516516
517517if config .linked_bye_extension :
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ config.have_curl = @LLVM_ENABLE_CURL@
4040config.have_httplib = @LLVM_ENABLE_HTTPLIB@
4141config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
4242config.enable_ffi = @LLVM_ENABLE_FFI@
43- config.build_examples = @LLVM_BUILD_EXAMPLES @
43+ config.include_examples = @LLVM_INCLUDE_EXAMPLES @
4444config.enable_backtrace = @ENABLE_BACKTRACES@
4545config.enable_threads = @LLVM_ENABLE_THREADS@
4646config.build_shared_libs = @BUILD_SHARED_LIBS@
You can’t perform that action at this time.
0 commit comments