[llvm] f45eee2 - [Orc][examples] LLJITWithRemoteDebugger: fix CMake when utils are not built
    Stefan Gränitz via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jun 27 04:55:12 PDT 2021
    
    
  
Author: Mara Sophie Grosch
Date: 2021-06-27T13:52:04+02:00
New Revision: f45eee270671ec9440766f15e44e74a2118f2d31
URL: https://github.com/llvm/llvm-project/commit/f45eee270671ec9440766f15e44e74a2118f2d31
DIFF: https://github.com/llvm/llvm-project/commit/f45eee270671ec9440766f15e44e74a2118f2d31.diff
LOG: [Orc][examples] LLJITWithRemoteDebugger: fix CMake when utils are not built
Added: 
    
Modified: 
    llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
Removed: 
    
################################################################################
diff  --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
index 38d447bc91e3f..558297b9e0b00 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
+++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
@@ -10,10 +10,12 @@ set(LLVM_LINK_COMPONENTS
   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()
        
    
    
More information about the llvm-commits
mailing list