[PATCH] D100081: LLJITWithRemoteDebugger: fix CMake when utils are not built
Mara Sophie Grosch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 7 18:38:08 PDT 2021
LittleFox94 created this revision.
Herald added a subscriber: mgorny.
LittleFox94 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Currently configuration with cmake without building utils (`LLVM_INCLUDE_UTILS`) fails because that example depends on a util, `llvm-jitlink-executor`.
This patch only adds the example when utils are built. Note, I also had examples disabled - but this does not prevent their subdirectories being added - maybe this is another task.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100081
Files:
llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
Index: llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
===================================================================
--- llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
+++ llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
@@ -10,10 +10,12 @@
nativecodegen
)
-add_llvm_example(LLJITWithRemoteDebugging
- LLJITWithRemoteDebugging.cpp
- RemoteJITUtils.cpp
+if ( LLVM_INCLUDE_UTILS )
+ add_llvm_example(LLJITWithRemoteDebugging
+ LLJITWithRemoteDebugging.cpp
+ RemoteJITUtils.cpp
- DEPENDS
- llvm-jitlink-executor
- )
+ DEPENDS
+ llvm-jitlink-executor
+ )
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100081.335969.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/2f6fb43a/attachment.bin>
More information about the llvm-commits
mailing list