This is an archive of the discontinued LLVM Phabricator instance.

Add a less ambiguous macro for Android version.
ClosedPublic

Authored by danalbert on Nov 17 2020, 3:24 PM.

Details

Reviewers
enh
srhines
jiyong
Summary

Android has a handful of API levels relevant to developers described
here: https://developer.android.com/studio/build#module-level.
__ANDROID_API__ is too vague and confuses a lot of people. Introduce
a new macro name that is explicit about which one it represents. Keep
the old name around because code has been using it for a decade.

Diff Detail

Event Timeline

danalbert created this revision.Nov 17 2020, 3:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2020, 3:24 PM
danalbert requested review of this revision.Nov 17 2020, 3:24 PM
enh accepted this revision.Nov 17 2020, 4:22 PM
This revision is now accepted and ready to land.Nov 17 2020, 4:22 PM

This LGTM, but just FYI: for darwin targets, these are ENVIRONMENT_<OSNAME>_VERSION_MIN_REQUIRED

srhines accepted this revision.Dec 1 2020, 4:54 PM