[llvm] Orc: Compute the JIT DataLayout from the triple and ABI (PR #226316)

Lukas Sommer via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 00:50:16 PDT 2026


sommerlukas wrote:

@arsenm I believe this change breaks builds with shared libraries and examples enabled: 
```
ld.lld: error: undefined symbol: llvm::MCTargetOptions::getABIName() const
>>> referenced by JITTargetMachineBuilder.h:70 
>>>               examples/Kaleidoscope/BuildingAJIT/Chapter1/CMakeFiles/BuildingAJIT-Ch1.dir/toy.cpp.o:(llvm::orc::KaleidoscopeJIT::Create())

ld.lld: error: undefined symbol: llvm::Triple::computeDataLayout[abi:cxx11](llvm::StringRef) const
>>> referenced by JITTargetMachineBuilder.h:70 
>>>               examples/Kaleidoscope/BuildingAJIT/Chapter1/CMakeFiles/BuildingAJIT-Ch1.dir/toy.cpp.o:(llvm::orc::KaleidoscopeJIT::Create())
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```


https://github.com/llvm/llvm-project/pull/226316


More information about the llvm-commits mailing list