| ... | ... | @@ -1619,6 +1619,10 @@ fn buildOutputType( |
| 1619 | 1619 | build_id = true; |
| 1620 | 1620 | warn("ignoring build-id style argument: '{s}'", .{value}); |
| 1621 | 1621 | continue; |
| 1622 | } else if (mem.eql(u8, key, "--sort-common")) { |
| 1623 | // this ignores --sort=common=<anything>; ignoring plain --sort-common |
| 1624 | // is done below. |
| 1625 | continue; |
| 1622 | 1626 | } |
| 1623 | 1627 | try linker_args.append(key); |
| 1624 | 1628 | try linker_args.append(value); |
| ... | ... | @@ -1631,6 +1635,9 @@ fn buildOutputType( |
| 1631 | 1635 | needed = true; |
| 1632 | 1636 | } else if (mem.eql(u8, linker_arg, "-no-pie")) { |
| 1633 | 1637 | want_pie = false; |
| 1638 | } else if (mem.eql(u8, linker_arg, "--sort-common")) { |
| 1639 | // from ld.lld(1): --sort-common is ignored for GNU compatibility, |
| 1640 | // this ignores plain --sort-common |
| 1634 | 1641 | } else if (mem.eql(u8, linker_arg, "--whole-archive") or |
| 1635 | 1642 | mem.eql(u8, linker_arg, "-whole-archive")) |
| 1636 | 1643 | { |