authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-12-26 20:44:06-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-12-26 20:44:06-05:00
logaaef6259c32ff43be912c31f70e005170ee86efd
tree213ef4596b704753e6a774e4ca9d9e5949473af6
parent2b7e29f791146e901e0479d2af20f1a91ec7165b
signature Commit is signed but in an unrecognized format.

allow not having libc include paths and doing @cImport


1 files changed, 1 insertions(+), 2 deletions(-)

src/analyze.cpp+1-2
...@@ -4590,8 +4590,7 @@ static Buf *get_posix_libc_include_path(void) {...@@ -4590,8 +4590,7 @@ static Buf *get_posix_libc_include_path(void) {
4590void find_libc_include_path(CodeGen *g) {4590void find_libc_include_path(CodeGen *g) {
4591 if (g->libc_include_dir == nullptr) {4591 if (g->libc_include_dir == nullptr) {
4592 if (!g->is_native_target) {4592 if (!g->is_native_target) {
4593 fprintf(stderr, "Unable to determine libc include path. --libc-include-dir");4593 return;
4594 exit(1);
4595 }4594 }
45964595
4597 if (g->zig_target.os == OsWindows) {4596 if (g->zig_target.os == OsWindows) {