Skip to content

[cmake] Unconditionally set the force flag when codesigning #1954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

vedantk
Copy link

@vedantk vedantk commented Oct 13, 2020

No description provided.

The Darwin linker now defaults to ad hoc signing binaries when targeting
Apple Silicon. This creates a problem when configuring targets that must
be built with entitlements: we either need to add -Wl,-no_adhoc_codesign
when building the target, or sign with the force flag set to allow
replacing a pre-existing signature.

Unconditionally force-signing is the more convenient solution. This
doesn't require a ld64 version check, and it's a much less invasive
cmake change.

Patch by Fred Riss!

rdar://70237254

Differential Revision: https://reviews.llvm.org/D89343

(cherry picked from commit 24c1660)
@vedantk
Copy link
Author

vedantk commented Oct 13, 2020

@swift-ci test macOS

@vedantk vedantk merged commit 3fbce23 into apple/stable/20200714 Oct 14, 2020
@vedantk vedantk deleted the eng/PR-70237254 branch October 14, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant