Replies: 1 comment
-
Good idea, but there was some code in the compiler itself that would behave differently based on the API level in the target and that couldn't use the default from our header if there was none in the target, so it defaults to a very large number. So despite other complaints like #6176, which I just saw, we have not done this and you can always specify the API level you want in your target yourself. If you want to look into changing the defaults and see if it's feasible, I'd consider a pull for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we are setting the llvm default target to
$TERMUX_ARCH-unknown-linux-android24
which causes the__ANDROID_API__
to be set to 24 regardless of the device's API level. If we set default target to$TERMUX_ARCH-unknown-linux-android
clang will use the__ANDROID_API__
value in theandroid/api-level.h
header file. Then we could use apostinst
script to change the__ANDROID_API__
value in theandroid/api-level.h
header file to device's API level.Beta Was this translation helpful? Give feedback.
All reactions