mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 14:14:59 -07:00
Add target triple and LLVM code mode debug prints (#5839)
This commit is contained in:
@@ -3036,8 +3036,14 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
|
||||
LLVMCodeModel code_mode = LLVMCodeModelDefault;
|
||||
if (is_arch_wasm()) {
|
||||
code_mode = LLVMCodeModelJITDefault;
|
||||
debugf("LLVM code mode: LLVMCodeModelJITDefault\n");
|
||||
} else if (is_arch_x86() && build_context.metrics.os == TargetOs_freestanding) {
|
||||
code_mode = LLVMCodeModelKernel;
|
||||
debugf("LLVM code mode: LLVMCodeModelKernel\n");
|
||||
}
|
||||
|
||||
if (code_mode == LLVMCodeModelDefault) {
|
||||
debugf("LLVM code mode: LLVMCodeModelDefault\n");
|
||||
}
|
||||
|
||||
String llvm_cpu = get_final_microarchitecture();
|
||||
|
||||
Reference in New Issue
Block a user