Page MenuHomePhabricator

[compiler-rt][Darwin] Refactor minimum deployment target substitutions

Authored by yln on Aug 13 2020, 12:32 PM.


  • Support macOS 11+ version scheme
  • Standardize substitution name %min_deployment_target=x.y
  • Remove unneeded error cases (the input version is hard-coded)
  • Specify version as tuple instead of string; no need to parse it

These changes should also facilitate a future addition of a substitution
that expands to "set deployment target to current target version"

Diff Detail

Event Timeline

yln created this revision.Aug 13 2020, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2020, 12:32 PM
Herald added subscribers: Restricted Project, dberris. · View Herald Transcript
yln requested review of this revision.Aug 13 2020, 12:32 PM

LGTM. Other than the nit.


Nit: min_deployment_target is a very general sounding thing but in this context its Darwin specific. You might want to put macos or darwin in the name somewhere to make this clear.

yln marked an inline comment as done.Aug 20 2020, 3:41 PM
yln added inline comments.

Renaming %min_deployment_target -> %min_macos_deployment_target.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 20 2020, 4:23 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
yln marked an inline comment as done.