[libc-commits] [compiler-rt] [flang] [clang] [libc] [llvm] [libcxx] Ensure `lli --force-interpreter` disables the OrcJIT too (PR #73717)
Alex Light via libc-commits
libc-commits at lists.llvm.org
Wed Nov 29 13:23:42 PST 2023
https://github.com/allight updated https://github.com/llvm/llvm-project/pull/73717
>From a1064c7c866741bba6489279cd27b499e5bd0a62 Mon Sep 17 00:00:00 2001
From: Alex Light <allight at google.com>
Date: Tue, 28 Nov 2023 15:30:54 -0800
Subject: [PATCH] Ensure --force-interpreter disables the ORCjit too
Unless the ORCJit was explicitly disabled it would be used by lli even
if the --force-interpreter flag was passed.
---
llvm/tools/lli/lli.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 9d95cbcb29c25cd..36fca4c40ed064d 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -453,7 +453,7 @@ int main(int argc, char **argv, char * const *envp) {
exit(1);
}
- if (UseJITKind == JITKind::MCJIT)
+ if (UseJITKind == JITKind::MCJIT || ForceInterpreter)
disallowOrcOptions();
else
return runOrcJIT(argv[0]);
More information about the libc-commits
mailing list