1 suggestion
Optional improvements
[suggestion] · New macOS warning gates leave native Apple linker coverage unchanged
The new fatal-warning settings target lld cross-links, while native macOS CI remains ungated for Apple's ld warnings; whether lld emits the motivating duplicate-library diagnostic is unverified.
Location: contrib/guix/libexec/build_macos.sh:33 (head).
Details and suggested fix
Both cross CI jobs use Debian, and the Guix Darwin environment supplies lld-19. For these non-Darwin hosts, depends/hosts/darwin.mk adds -fuse-ld=lld, which the depends toolchain carries into CMake. The native standard and fuzz jobs instead use Xcode, but neither receives a fatal-linker-warning setting. The existing working_linker_werror_flag only applies to configuration probes. These cross-link gates therefore do not cover Apple-linker-specific warnings, including a recurrence of the motivating diagnostic if it is specific to Apple's linker. Add an equivalent gate to native macOS CI to cover that linker too.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Fatal linker warnings changed the motivation from reducing harmless log noise to removing a concrete obstacle to applying warnings-as-errors on Darwin.
The original proposal showed Apple linker warnings for repeated project and dependency archives. The later historical explanation explicitly identified those warnings as blocking Darwin warnings-as-errors and said the proposal had been reworked to avoid CMake 3.29/3.30 behavior. This connects the paired guard directly to the current change's fatal-warning objective.
Unresolved disagreements
Whether CMake's capability-dependent de-duplication reliably reflects the actual linker remained a distinct historical concern, not answered merely by selecting first-occurrence retention.
In the earlier proposal, theuni expressed concern that CMake's logic appeared target-based rather than linker-based and preferred retaining explicit control while duplicates were only warnings. The later proposal addresses version-dependent behavior and supplies a stronger fatal-warning motivation, but the inspected passages do not resolve that linker-detection concern. Thus the paired guard should not itself be read as evidence covering every supported linker.