allow not having libc include paths and doing @cImport

This commit is contained in:
Andrew Kelley 2018-12-26 20:44:06 -05:00
parent 2b7e29f791
commit aaef6259c3
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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) {