diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-22 21:47:25 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-22 21:47:25 -0400 |
| commit | 75328e32045d1275c03f1f37058ee0a3b775c632 (patch) | |
| tree | 786ecef4dad2079fd29a0deb4ba4fc42c216e0d3 /src/analyze.cpp | |
| parent | 25dff91fa099489858428a7071b8c76acf1f943d (diff) | |
| download | zig-75328e32045d1275c03f1f37058ee0a3b775c632.tar.gz zig-75328e32045d1275c03f1f37058ee0a3b775c632.zip | |
exit(1) instead of abort() for file not found
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 5dd7b0d18c..a598d7676e 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4306,7 +4306,8 @@ bool handle_is_ptr(TypeTableEntry *type_entry) { static ZigWindowsSDK *get_windows_sdk(CodeGen *g) { if (g->win_sdk == nullptr) { if (os_find_windows_sdk(&g->win_sdk)) { - zig_panic("Unable to determine Windows SDK path."); + fprintf(stderr, "unable to determine windows sdk path\n"); + exit(1); } } assert(g->win_sdk != nullptr); @@ -4408,7 +4409,8 @@ void find_libc_include_path(CodeGen *g) { ZigWindowsSDK *sdk = get_windows_sdk(g); g->libc_include_dir = buf_alloc(); if (os_get_win32_ucrt_include_path(sdk, g->libc_include_dir)) { - zig_panic("Unable to determine libc include path."); + fprintf(stderr, "Unable to determine libc include path. --libc-include-dir"); + exit(1); } } else if (g->zig_target.os == OsLinux) { g->libc_include_dir = get_linux_libc_include_path(); |
