Merge pull request #583 from Dimenus/libc_runtime

Win32 libc runtime fixes.
This commit is contained in:
Andrew Kelley 2017-11-03 18:32:03 -04:00 committed by GitHub
commit d4c1ed95ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.");
}
}
}