mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 04:35:00 -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();
|
||||
|
||||
@@ -3840,6 +3840,7 @@ int main(int arg_count, char const **arg_ptr) {
|
||||
if (build_context.show_debug_messages) {
|
||||
debugf("Selected microarch: %.*s\n", LIT(march));
|
||||
debugf("Default microarch features: %.*s\n", LIT(default_features));
|
||||
debugf("Target triplet: %.*s\n", LIT(build_context.metrics.target_triplet));
|
||||
for_array(i, build_context.build_paths) {
|
||||
String build_path = path_to_string(heap_allocator(), build_context.build_paths[i]);
|
||||
debugf("build_paths[%ld]: %.*s\n", i, LIT(build_path));
|
||||
|
||||
Reference in New Issue
Block a user