| ... | @@ -7553,7 +7553,13 @@ static void init(CodeGen *g) { | ... | @@ -7553,7 +7553,13 @@ static void init(CodeGen *g) { |
| 7553 | LLVMTargetRef target_ref; | 7553 | LLVMTargetRef target_ref; |
| 7554 | char *err_msg = nullptr; | 7554 | char *err_msg = nullptr; |
| 7555 | if (LLVMGetTargetFromTriple(buf_ptr(&g->triple_str), &target_ref, &err_msg)) { | 7555 | if (LLVMGetTargetFromTriple(buf_ptr(&g->triple_str), &target_ref, &err_msg)) { |
| 7556 | zig_panic("unable to create target based on: %s", buf_ptr(&g->triple_str)); | 7556 | fprintf(stderr, |
| | 7557 | "Zig is expecting LLVM to understand this target: '%s'\n" |
| | 7558 | "However LLVM responded with: \"%s\"\n" |
| | 7559 | "Zig is unable to continue. This is a bug in Zig:\n" |
| | 7560 | "https://github.com/ziglang/zig/issues/438\n" |
| | 7561 | , buf_ptr(&g->triple_str), err_msg); |
| | 7562 | exit(1); |
| 7557 | } | 7563 | } |
| 7558 | | 7564 | |
| 7559 | bool is_optimized = g->build_mode != BuildModeDebug; | 7565 | bool is_optimized = g->build_mode != BuildModeDebug; |