]> granicus.if.org Git - clang/commit
Define __ANDROID_API__ for all Android builds.
authorStephen Hines <srhines@google.com>
Tue, 8 Nov 2016 21:23:26 +0000 (21:23 +0000)
committerStephen Hines <srhines@google.com>
Tue, 8 Nov 2016 21:23:26 +0000 (21:23 +0000)
commita8804ddd9fe71304b28e5b834d134fe93e568ee0
tree783ebf56a15e2f012dcccee45a8cf5b7651f6a55
parentb74377b0a34a33cb3c7b565f0e543cd3e56b3f6b
Define __ANDROID_API__ for all Android builds.

Summary:
Bug: https://llvm.org/bugs/show_bug.cgi?id=30940

This macro (along with __ANDROID__) should always be defined for Android
targets. We set it to the major (only) version of the Android API being
compiled for. The Android version is able to be set as an integer suffix
for any valid Android target.

Reviewers: danalbert, eugenis

Subscribers: cfe-commits, pirama, eugenis, tberghammer, danalbert

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286295 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Driver/android-targets.cpp [new file with mode: 0644]