mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Check for LLVM_VERSION_MAJOR >= 18
This commit is contained in:
@@ -3082,9 +3082,11 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
|
|||||||
m->target_machine = target_machine;
|
m->target_machine = target_machine;
|
||||||
LLVMSetModuleDataLayout(m->mod, LLVMCreateTargetDataLayout(target_machine));
|
LLVMSetModuleDataLayout(m->mod, LLVMCreateTargetDataLayout(target_machine));
|
||||||
|
|
||||||
|
#if LLVM_VERSION_MAJOR >= 18
|
||||||
if (build_context.fast_isel) {
|
if (build_context.fast_isel) {
|
||||||
LLVMSetTargetMachineFastISel(m->target_machine, true);
|
LLVMSetTargetMachineFastISel(m->target_machine, true);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
array_add(&target_machines, target_machine);
|
array_add(&target_machines, target_machine);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user