Skip to content

Commit 6e61fc2

Browse files
committed
ci: fixes for clang-21
1 parent b4c8326 commit 6e61fc2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/lib/score/tools/RecursiveWatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
&& !defined(_WIN32) \
1616
&& !defined(__EMSCRIPTEN__) \
1717
&& !defined(__APPLE__) \
18-
&& (!defined(__clang_major__) || __clang_major__ >= 14)
18+
&& (!defined(__clang_major__) || (__clang_major__ >= 14 && __clang_major__ < 21))
1919
#define SCORE_HAS_LLFIO 1
2020
#elif defined(__APPLE__)
2121
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_15

src/plugins/score-plugin-jit/JitCpp/Compiler/Compiler.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ static std::unique_ptr<llvm::orc::LLJIT> jitBuilder(JitCompiler& self)
209209

210210
// Configure to use JITLink via ObjectLinkingLayer
211211
builder.setObjectLinkingLayerCreator(
212-
[&](llvm::orc::ExecutionSession& ES, const llvm::Triple& TT) {
212+
[&](llvm::orc::ExecutionSession& ES
213+
#if LLVM_VERSION_MAJOR < 21
214+
, const llvm::Triple& TT
215+
#endif
216+
) {
213217
// Create ObjectLinkingLayer with JITLink
214218
auto ObjLinkingLayer
215219
= std::make_unique<llvm::orc::ObjectLinkingLayer>(ES, *self.m_memmgr);

0 commit comments

Comments
 (0)