commit aaef6259c32ff43be912c31f70e005170ee86efd (tree)
parent 2b7e29f791146e901e0479d2af20f1a91ec7165b
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 26 Dec 2018 20:44:06 -0500
allow not having libc include paths and doing @cImport
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/analyze.cpp b/src/analyze.cpp
@@ -4590,8 +4590,7 @@ static Buf *get_posix_libc_include_path(void) {
void find_libc_include_path(CodeGen *g) {
if (g->libc_include_dir == nullptr) {
if (!g->is_native_target) {
- fprintf(stderr, "Unable to determine libc include path. --libc-include-dir");
- exit(1);
+ return;
}
if (g->zig_target.os == OsWindows) {