This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Assume repeat architectures for universal binaries
ClosedPublic

Authored by keith on Mar 14 2022, 9:59 PM.

Details

Summary

In the case you pass multiple universal binaries to llvm-cov, assume
that if only 1 architecture is passed, it should be used for all the
passed binaries.

This makes it easier to use multiple multi-arch binaries, since it's
likely very rare that your architectures mismatch significantly if you
also have multiple binaries in a single llvm-cov invocation. If the
architecture is invalid for any of the passed binaries, it will still
fail later.

Diff Detail

Event Timeline

keith created this revision.Mar 14 2022, 9:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 9:59 PM
keith requested review of this revision.Mar 14 2022, 9:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 9:59 PM
kastiglione accepted this revision.Jun 1 2022, 9:43 AM

+1 – it doesn't make sense to have to repeat the same -arch flag and value N times for N binaries.

This revision is now accepted and ready to land.Jun 1 2022, 9:43 AM
This revision was landed with ongoing or failed builds.Jun 8 2022, 1:23 PM
This revision was automatically updated to reflect the committed changes.