diff --git a/lib/Interpreter/IncrementalJIT.cpp b/lib/Interpreter/IncrementalJIT.cpp index e4e03b16..04bebf05 100644 --- a/lib/Interpreter/IncrementalJIT.cpp +++ b/lib/Interpreter/IncrementalJIT.cpp @@ -435,6 +435,7 @@ CreateTargetMachine(const clang::CompilerInstance& CI, bool JITLink) { using namespace llvm::orc; auto JTMB = JITTargetMachineBuilder(TT); JTMB.addFeatures(CI.getTargetOpts().Features); + JTMB.getOptions().MCOptions.ABIName = CI.getTarget().getABI().str(); JTMB.setCodeGenOptLevel(OptLevel); #ifdef _WIN32