fixed: missing init of asm parsers

This commit is contained in:
Sven Vogel 2024-06-04 15:18:22 +02:00
parent 0c5fb4fd41
commit 4ac0ee79d1
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ BackendError export_object(LLVMBackendCompileUnit* unit, const Target* target,
LLVMInitializeAllTargets();
LLVMInitializeAllTargetInfos();
LLVMInitializeAllTargetMCs();
// NOTE: for code generation (assmebly or binary) we need the following:
LLVMInitializeAllAsmParsers();
LLVMInitializeAllAsmPrinters();
DEBUG("creating target...");
if (LLVMGetTargetFromTriple(target->triple.str, &llvm_target, &error) !=