From a52d34d5ed7eddfafe02e182a6d72292f6edda26 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Mon, 9 Sep 2024 14:09:13 +0200 Subject: [PATCH] [cling] Enable JITLink by default for AArch64 on Linux There are still failures with RuntimeDyld on AArch64 which seem to be solved with JITLink, so make the switch now. --- interpreter/cling/lib/Interpreter/IncrementalJIT.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp b/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp index 8705b32f93491..975b0bd10623b 100644 --- a/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp +++ b/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp @@ -352,7 +352,8 @@ static bool UseJITLink(const Triple& TT) { if (TT.getArch() == Triple::riscv64 || (TT.isOSBinFormatMachO() && (TT.getArch() == Triple::aarch64 || TT.getArch() == Triple::x86_64)) || - (TT.isOSBinFormatELF() && TT.getArch() == Triple::ppc64le)) { + (TT.isOSBinFormatELF() && + (TT.getArch() == Triple::aarch64 || TT.getArch() == Triple::ppc64le))) { jitLink = true; } // Finally, honor the user's choice by setting an environment variable.