• Windows Build Problems Related to ORC-RT Let me first introduce what I was doing so far. • I am using the C# bindings based on the LLVM-C.dll. • I have build a facade to write IR code for modules and test it. • Using the JitMC I tried to run the code but was running into section alignment issues based on the small code model. • Trying to set the large or medium code model for the execution engine using LLVMSharp failed. • Then I started a C++ library project to do the initialization of the execution engine directly, I learned that the ’new’ way of doing things is using the ORC JIT infrastructure (version 2) and this is where I am currently stuck.

Article Summaries:

  • A developer is encountering build issues while compiling the ORC‑RT JIT infrastructure of LLVM (22.x) on Windows using Visual Studio 2026. After initial attempts with C# bindings and the JITMC interface failed due to section alignment problems, the developer switched to a C++ project and enabled the new ORC JIT (version 2). The build produces D9002 warnings from cl about unknown -frtti and -fexception options, and a C3615 error that std::hash::operator() cannot be a constant expression. The errors likely stem from an older C++ standard being used; the developer is unsure how to resolve them and is experimenting with CMake flags -DLLVM_ENABLE_RUNTIMES=orc-rt and -DLLVM_TARGETS_TO_BUILD=X86.

Sources: