This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Update -adhoc_codesign default
ClosedPublic

Authored by keith on Dec 8 2022, 12:49 PM.

Details

Reviewers
thakis
Group Reviewers
Restricted Project
Commits
rGbd570709c06a: [lld-macho] Update -adhoc_codesign default
Summary

With newer versions of ld64 it generates an adhoc signature by default
for all arm64 simulator targets. This default is especially important
for unit test targets that rarely have custom codesigning requirements
but otherwise won't run on arm64 macs.

Diff Detail

Event Timeline

keith created this revision.Dec 8 2022, 12:49 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 8 2022, 12:49 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Dec 8 2022, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 12:49 PM
thakis accepted this revision.Dec 8 2022, 1:15 PM
thakis added a subscriber: thakis.

LG

Does newer ld64 adhoc sign catalyst binaries too? Or not yet? (See https://github.com/nico/hack/blob/main/notes/catalyst.md for how to check)

This revision is now accepted and ready to land.Dec 8 2022, 1:15 PM
keith added a comment.Dec 8 2022, 1:46 PM

Yes it does, and it looks like we get that today with lld because of platform == PLATFORM_MACOS

This revision was landed with ongoing or failed builds.Dec 8 2022, 1:49 PM
This revision was automatically updated to reflect the committed changes.