| ... | ... | @@ -605,6 +605,20 @@ static void construct_linker_job_darwin(LinkJob *lj) { |
| 605 | 605 | lj->args.append(buf_ptr(arg)); |
| 606 | 606 | } |
| 607 | 607 | |
| 608 | if (g->link_libc) { |
| 609 | lj->args.append("-lSystem"); |
| 610 | |
| 611 | if (platform.kind == MacOS) { |
| 612 | if (darwin_version_lt(&platform, 10, 5)) { |
| 613 | lj->args.append("-lgcc_s.10.4"); |
| 614 | } else if (darwin_version_lt(&platform, 10, 6)) { |
| 615 | lj->args.append("-lgcc_s.10.5"); |
| 616 | } |
| 617 | } else { |
| 618 | zig_panic("TODO"); |
| 619 | } |
| 620 | } |
| 621 | |
| 608 | 622 | } |
| 609 | 623 | |
| 610 | 624 | static void construct_linker_job(LinkJob *lj) { |