diff --git a/src/codegen.cpp b/src/codegen.cpp index 58eb442f6278e..f28e263dabcb1 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4656,7 +4656,7 @@ extern "C" void jl_init_codegen(void) .setJITMemoryManager(new JITMemoryManagerWin()) #endif .setTargetOptions(options) -#ifdef USE_MCJIT +#if defined(USE_MCJIT) && !defined(LLVM36) .setUseMCJIT(true) #endif ;