Fix //tests/legacy/examples/cgo:cgo_lib_test on M1 Macs (#3237) The CPU config setting didn't match for M1 Macs, which are darwin_arm64. Instead, use a more modern @platforms condition for the special casing. We should ultimately fix the underlying issue with linking on macOS instead.