Commit 1890760206

dimenus <ryan.saunderson88@gmail.com>
2017-11-03 22:46:43
Windows libc & static libc are located in the same dir which is already covered by msvc_lib_dir
1 parent 795703a
Changed files (1)
src/analyze.cpp
@@ -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.");
+        }
     }
 }