4e520ec7a7
Instead of assuming that linker-signed is a valid option flag for codesign, only attempt to use it on macOS 11.0 or later, where signatures on linker-signed binaries need not be force overwritten. Otherwise, fall back to a regular signature that must be force overwritten. Bug: https://github.com/dart-lang/sdk/issues/49010 Cq-Include-Trybots: luci.dart.try:pkg-mac-release-arm64-try,pkg-mac-release-try Change-Id: Ia2bff2f501dbe37b3269a2a2f16ce9a29026664e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245000 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>