David Spickett 10767aad89
[llvm][examples] Disable some JIT examples when threading is disabled (#172282)
This fixes an error on our Armv8 bot:
```
<...>/RemoteJITUtils.cpp:132:24: error: use of undeclared identifier 'DynamicThreadPoolTaskDispatcher'
  132 |       std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt),
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

These examples require LLVM_ENABLE_THREADS to be ON, and cannot run
otherwise. As a comment says elsewhere:
```
  // Out of process mode using SimpleRemoteEPC depends on threads.
```
2025-12-15 11:40:27 +00:00

24 lines
373 B
CMake

set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
IRReader
JITLink
OrcDebugging
OrcJIT
OrcShared
OrcTargetProcess
Support
TargetParser
nativecodegen
)
if (LLVM_INCLUDE_UTILS AND LLVM_ENABLE_THREADS)
add_llvm_example(LLJITWithRemoteDebugging
LLJITWithRemoteDebugging.cpp
RemoteJITUtils.cpp
DEPENDS
llvm-jitlink-executor
)
endif()