[all-commits] [llvm/llvm-project] ec516f: Fix __isOSVersionAtLeast for Android (#80496)
Jooyung Han via All-commits
all-commits at lists.llvm.org
Tue Feb 20 21:46:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ec516ff3e6122069b36f32a6db8bb3dc672133fc
https://github.com/llvm/llvm-project/commit/ec516ff3e6122069b36f32a6db8bb3dc672133fc
Author: Jooyung Han <jooyung.han at gmail.com>
Date: 2024-02-20 (Tue, 20 Feb 2024)
Changed paths:
M compiler-rt/lib/builtins/os_version_check.c
Log Message:
-----------
Fix __isOSVersionAtLeast for Android (#80496)
Allow pre-release APIs on pre-release devices.
The current implementation requires __ANDROID_API_FUTURE__ to use new
APIs on pre-release system. This makes it hard to maintain the codebase
because it should be switched a concrete version (e.g. __ANDROID_API_X__
on release of X).
Instead, we can just allow pre-release APIs on pre-release system
without mandating the major version of __ANDROID_API_FUTURE__.
Note that this doesn't make API guards just no-op in pre-release builds.
We can still rely on its compile-time checks and it still works as
expected with release builds. Even with pre-release builds, it's the
same as before because we would pass __ANDROID_API_FUTURE__ to make the
calls anyway.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list