Windows libc & static libc are located in the same dir which is already covered by msvc_lib_dir

This commit is contained in:
dimenus 2017-11-03 16:46:43 -05:00
parent 795703a39c
commit 1890760206

View File

@ -3440,8 +3440,14 @@ void find_libc_lib_path(CodeGen *g) {
zig_panic("Unable to determine libc lib path.");
}
}
if (!g->libc_static_lib_dir || buf_len(g->libc_static_lib_dir) == 0) {
zig_panic("Unable to determine libc static lib path.");
if ((g->zig_target.os == ZigLLVM_Win32) && (g->msvc_lib_dir != NULL)) {
return;
}
else {
zig_panic("Unable to determine libc static lib path.");
}
}
}