[PATCH] D70590: [Examples] Exclude ExampleIRTransforms from ALL if examples are disabled.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 03:38:39 PST 2019
fhahn created this revision.
fhahn added reviewers: tstellar, compnerd, smeenai, beanz.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
This should fix a problem where using LLVMExports.cmake fails, because
it expects libExampleIRTransforms.a to be installed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70590
Files:
llvm/examples/IRTransforms/CMakeLists.txt
Index: llvm/examples/IRTransforms/CMakeLists.txt
===================================================================
--- llvm/examples/IRTransforms/CMakeLists.txt
+++ llvm/examples/IRTransforms/CMakeLists.txt
@@ -4,6 +4,12 @@
Support
)
+# Do not include examples in "all" target. Also excludes it from the install
+# list.
+if (NOT LLVM_BUILD_EXAMPLES)
+ set(EXCLUDE_FROM_ALL ON)
+endif()
+
add_llvm_library(ExampleIRTransforms
InitializePasses.cpp
SimplifyCFG.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70590.230625.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191122/53d0c90c/attachment.bin>
More information about the llvm-commits
mailing list