add default value for macosx version min when compiling natively

closes #264
This commit is contained in:
Andrew Kelley 2017-03-10 02:58:23 -05:00
parent c91dbdb27c
commit c78dc5043b

View File

@ -42,6 +42,8 @@ static void init_darwin_native(CodeGen *g) {
g->mmacosx_version_min = buf_create_from_str(osx_target);
} else if (ios_target) {
g->mios_version_min = buf_create_from_str(ios_target);
} else if (g->zig_target.os != ZigLLVM_IOS) {
g->mmacosx_version_min = buf_create_from_str("10.10");
}
}