diff --git a/src/codegen.cpp b/src/codegen.cpp index 3d4d2a8c3..911bebb3a 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8804,6 +8804,10 @@ static void init(CodeGen *g) { target_specific_cpu_args, target_specific_features, opt_level, reloc_mode, LLVMCodeModelDefault, g->function_sections); + fprintf(stderr, "name=%s cpu=%s features=%s\n", buf_ptr(g->root_out_name), + LLVMGetTargetMachineCPU(g->target_machine), + LLVMGetTargetMachineFeatureString(g->target_machine)); + g->target_data_ref = LLVMCreateTargetDataLayout(g->target_machine); char *layout_str = LLVMCopyStringRepOfTargetData(g->target_data_ref);