authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-11-03 18:32:03-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2017-11-03 18:32:03-04:00
logd4c1ed95acb1c301cd29ee7b452e739df0976dc1
tree5dbdfe8d9e3434bf358a0c9eb29cce597ed0aec9
parent795703a39cfe0d59fcd9fff7a605a7efe9c5bdb2
parent1890760206daa54af6b99ea052bc1d021004245d
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #583 from Dimenus/libc_runtime

Win32 libc runtime fixes.

1 files changed, 7 insertions(+), 1 deletions(-)

src/analyze.cpp+7-1
...@@ -3440,8 +3440,14 @@ void find_libc_lib_path(CodeGen *g) {...@@ -3440,8 +3440,14 @@ void find_libc_lib_path(CodeGen *g) {
3440 zig_panic("Unable to determine libc lib path.");3440 zig_panic("Unable to determine libc lib path.");
3441 }3441 }
3442 }3442 }
3443
3443 if (!g->libc_static_lib_dir || buf_len(g->libc_static_lib_dir) == 0) {3444 if (!g->libc_static_lib_dir || buf_len(g->libc_static_lib_dir) == 0) {
3444 zig_panic("Unable to determine libc static lib path.");3445 if ((g->zig_target.os == ZigLLVM_Win32) && (g->msvc_lib_dir != NULL)) {
3446 return;
3447 }
3448 else {
3449 zig_panic("Unable to determine libc static lib path.");
3450 }
3445 }3451 }
3446}3452}
34473453