| ... | @@ -4433,7 +4433,8 @@ void find_libc_lib_path(CodeGen *g) { | ... | @@ -4433,7 +4433,8 @@ void find_libc_lib_path(CodeGen *g) { |
| 4433 | if (g->msvc_lib_dir == nullptr) { | 4433 | if (g->msvc_lib_dir == nullptr) { |
| 4434 | Buf* vc_lib_dir = buf_alloc(); | 4434 | Buf* vc_lib_dir = buf_alloc(); |
| 4435 | if (os_get_win32_vcruntime_path(vc_lib_dir, g->zig_target.arch.arch)) { | 4435 | if (os_get_win32_vcruntime_path(vc_lib_dir, g->zig_target.arch.arch)) { |
| 4436 | zig_panic("Unable to determine vcruntime path."); | 4436 | fprintf(stderr, "Unable to determine vcruntime path. --msvc-lib-dir"); |
| | 4437 | exit(1); |
| 4437 | } | 4438 | } |
| 4438 | g->msvc_lib_dir = vc_lib_dir; | 4439 | g->msvc_lib_dir = vc_lib_dir; |
| 4439 | } | 4440 | } |
| ... | @@ -4441,7 +4442,8 @@ void find_libc_lib_path(CodeGen *g) { | ... | @@ -4441,7 +4442,8 @@ void find_libc_lib_path(CodeGen *g) { |
| 4441 | if (g->libc_lib_dir == nullptr) { | 4442 | if (g->libc_lib_dir == nullptr) { |
| 4442 | Buf* ucrt_lib_path = buf_alloc(); | 4443 | Buf* ucrt_lib_path = buf_alloc(); |
| 4443 | if (os_get_win32_ucrt_lib_path(sdk, ucrt_lib_path, g->zig_target.arch.arch)) { | 4444 | if (os_get_win32_ucrt_lib_path(sdk, ucrt_lib_path, g->zig_target.arch.arch)) { |
| 4444 | zig_panic("Unable to determine ucrt path."); | 4445 | fprintf(stderr, "Unable to determine ucrt path. --libc-lib-dir"); |
| | 4446 | exit(1); |
| 4445 | } | 4447 | } |
| 4446 | g->libc_lib_dir = ucrt_lib_path; | 4448 | g->libc_lib_dir = ucrt_lib_path; |
| 4447 | } | 4449 | } |
| ... | @@ -4449,7 +4451,8 @@ void find_libc_lib_path(CodeGen *g) { | ... | @@ -4449,7 +4451,8 @@ void find_libc_lib_path(CodeGen *g) { |
| 4449 | if (g->kernel32_lib_dir == nullptr) { | 4451 | if (g->kernel32_lib_dir == nullptr) { |
| 4450 | Buf* kern_lib_path = buf_alloc(); | 4452 | Buf* kern_lib_path = buf_alloc(); |
| 4451 | if (os_get_win32_kern32_path(sdk, kern_lib_path, g->zig_target.arch.arch)) { | 4453 | if (os_get_win32_kern32_path(sdk, kern_lib_path, g->zig_target.arch.arch)) { |
| 4452 | zig_panic("Unable to determine kernel32 path."); | 4454 | fprintf(stderr, "Unable to determine kernel32 path. --kernel32-lib-dir"); |
| | 4455 | exit(1); |
| 4453 | } | 4456 | } |
| 4454 | g->kernel32_lib_dir = kern_lib_path; | 4457 | g->kernel32_lib_dir = kern_lib_path; |
| 4455 | } | 4458 | } |