all behavior tests passing for macos

See #273
This commit is contained in:
Andrew Kelley
2017-08-27 05:15:24 -04:00
parent 91536813ec
commit ff2c794612
16 changed files with 341 additions and 186 deletions

View File

@@ -325,6 +325,10 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append(get_libc_static_file(g, "crtend.o"));
lj->args.append(get_libc_file(g, "crtn.o"));
}
if (!g->is_native_target) {
lj->args.append("--allow-shlib-undefined");
}
}
static bool is_target_cyg_mingw(const ZigTarget *target) {